mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-31 12:46:45 +00:00
1.7 - Testing Query Scopes
This commit is contained in:
@@ -11,7 +11,7 @@ class ViewConcertListingTest extends TestCase
|
||||
use DatabaseMigrations;
|
||||
|
||||
/** @test */
|
||||
function user_can_view_a_concert_listing()
|
||||
function user_can_view_a_published_concert_listing()
|
||||
{
|
||||
$concert = Concert::create([
|
||||
'title' => 'The Red Chord',
|
||||
@@ -24,6 +24,7 @@ class ViewConcertListingTest extends TestCase
|
||||
'state' => 'ON',
|
||||
'zip' => '17916',
|
||||
'additional_information' => 'For tickets, call (555) 555-5555.',
|
||||
'published_at' => Carbon::parse('-1 week'),
|
||||
]);
|
||||
|
||||
$this->visit('/concerts/'.$concert->id);
|
||||
|
||||
Reference in New Issue
Block a user