mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-16 22:53:50 +00:00
(change minimum poster width from 400px to 600px)
This commit is contained in:
@@ -38,7 +38,7 @@ class ConcertsController extends Controller
|
|||||||
'zip' => ['required'],
|
'zip' => ['required'],
|
||||||
'ticket_price' => ['required', 'numeric', 'min:5'],
|
'ticket_price' => ['required', 'numeric', 'min:5'],
|
||||||
'ticket_quantity' => ['required', 'numeric', 'min:1'],
|
'ticket_quantity' => ['required', 'numeric', 'min:1'],
|
||||||
'poster_image' => ['nullable', 'image', Rule::dimensions()->minWidth(400)->ratio(8.5/11)],
|
'poster_image' => ['nullable', 'image', Rule::dimensions()->minWidth(600)->ratio(8.5/11)],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$concert = Auth::user()->concerts()->create([
|
$concert = Auth::user()->concerts()->create([
|
||||||
|
|||||||
@@ -410,11 +410,11 @@ class AddConcertTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @test */
|
/** @test */
|
||||||
function poster_image_must_be_at_least_400px_wide()
|
function poster_image_must_be_at_least_600px_wide()
|
||||||
{
|
{
|
||||||
Storage::fake('public');
|
Storage::fake('public');
|
||||||
$user = factory(User::class)->create();
|
$user = factory(User::class)->create();
|
||||||
$file = File::image('poster.png', 399, 516);
|
$file = File::image('poster.png', 599, 775);
|
||||||
|
|
||||||
$response = $this->actingAs($user)->from('/backstage/concerts/new')->post('/backstage/concerts', $this->validParams([
|
$response = $this->actingAs($user)->from('/backstage/concerts/new')->post('/backstage/concerts', $this->validParams([
|
||||||
'poster_image' => $file,
|
'poster_image' => $file,
|
||||||
|
|||||||
Reference in New Issue
Block a user