mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-01 10:47:12 +00:00
48 - Cleaning up a Loose Variable
This commit is contained in:
@@ -23,6 +23,20 @@ class ReservationTest extends TestCase
|
||||
$this->assertEquals(3600, $reservation->totalCost());
|
||||
}
|
||||
|
||||
/** @test */
|
||||
function retrieving_the_reservations_tickets()
|
||||
{
|
||||
$tickets = collect([
|
||||
(object) ['price' => 1200],
|
||||
(object) ['price' => 1200],
|
||||
(object) ['price' => 1200],
|
||||
]);
|
||||
|
||||
$reservation = new Reservation($tickets);
|
||||
|
||||
$this->assertEquals($tickets, $reservation->tickets());
|
||||
}
|
||||
|
||||
/** @test */
|
||||
function reserved_tickets_are_released_when_a_reservation_is_cancelled()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user