mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-03 19:48:32 +00:00
108 - Connecting Promoters and Concerts
This commit is contained in:
@@ -77,10 +77,12 @@ class AddConcertTest extends TestCase
|
||||
'ticket_quantity' => '75',
|
||||
]);
|
||||
|
||||
tap(Concert::first(), function ($concert) use ($response) {
|
||||
tap(Concert::first(), function ($concert) use ($response, $user) {
|
||||
$response->assertStatus(302);
|
||||
$response->assertRedirect("/concerts/{$concert->id}");
|
||||
|
||||
$this->assertTrue($concert->user->is($user));
|
||||
|
||||
$this->assertEquals('No Warning', $concert->title);
|
||||
$this->assertEquals('with Cruel Hand and Backtrack', $concert->subtitle);
|
||||
$this->assertEquals("You must be 19 years of age to attend this concert.", $concert->additional_information);
|
||||
@@ -131,10 +133,12 @@ class AddConcertTest extends TestCase
|
||||
'subtitle' => '',
|
||||
]));
|
||||
|
||||
tap(Concert::first(), function ($concert) use ($response) {
|
||||
tap(Concert::first(), function ($concert) use ($response, $user) {
|
||||
$response->assertStatus(302);
|
||||
$response->assertRedirect("/concerts/{$concert->id}");
|
||||
|
||||
$this->assertTrue($concert->user->is($user));
|
||||
|
||||
$this->assertNull($concert->subtitle);
|
||||
});
|
||||
}
|
||||
@@ -150,10 +154,12 @@ class AddConcertTest extends TestCase
|
||||
'additional_information' => "",
|
||||
]));
|
||||
|
||||
tap(Concert::first(), function ($concert) use ($response) {
|
||||
tap(Concert::first(), function ($concert) use ($response, $user) {
|
||||
$response->assertStatus(302);
|
||||
$response->assertRedirect("/concerts/{$concert->id}");
|
||||
|
||||
$this->assertTrue($concert->user->is($user));
|
||||
|
||||
$this->assertNull($concert->additional_information);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user