mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
109 - Autopublishing New Concerts
This commit is contained in:
@@ -58,6 +58,17 @@ class ConcertTest extends TestCase
|
||||
$this->assertFalse($publishedConcerts->contains($unpublishedConcert));
|
||||
}
|
||||
|
||||
/** @test */
|
||||
function concerts_can_be_published()
|
||||
{
|
||||
$concert = factory(Concert::class)->create(['published_at' => null]);
|
||||
$this->assertFalse($concert->isPublished());
|
||||
|
||||
$concert->publish();
|
||||
|
||||
$this->assertTrue($concert->isPublished());
|
||||
}
|
||||
|
||||
/** @test */
|
||||
function can_add_tickets()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user