mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-06 20:50:08 +00:00
6.8 - Reserving Individual Tickets
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Ticket;
|
||||
use App\Concert;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
@@ -9,6 +10,17 @@ class TicketTest extends TestCase
|
||||
{
|
||||
use DatabaseMigrations;
|
||||
|
||||
/** @test */
|
||||
function a_ticket_can_be_reserved()
|
||||
{
|
||||
$ticket = factory(Ticket::class)->create();
|
||||
$this->assertNull($ticket->reserved_at);
|
||||
|
||||
$ticket->reserve();
|
||||
|
||||
$this->assertNotNull($ticket->fresh()->reserved_at);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
function a_ticket_can_be_released()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user