mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
47 - Deleting Stale Tests
This commit is contained in:
@@ -38,17 +38,4 @@ class OrderTest extends TestCase
|
||||
'amount' => 6000,
|
||||
], $result);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
function tickets_are_released_when_an_order_is_cancelled()
|
||||
{
|
||||
$concert = factory(Concert::class)->create()->addTickets(10);
|
||||
$order = $concert->orderTickets('jane@example.com', 5);
|
||||
$this->assertEquals(5, $concert->ticketsRemaining());
|
||||
|
||||
$order->cancel();
|
||||
|
||||
$this->assertEquals(10, $concert->ticketsRemaining());
|
||||
$this->assertNull(Order::find($order->id));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user