diff --git a/tests/features/PurchaseTicketsTest.php b/tests/features/PurchaseTicketsTest.php index b5f23a6..983770e 100644 --- a/tests/features/PurchaseTicketsTest.php +++ b/tests/features/PurchaseTicketsTest.php @@ -41,6 +41,13 @@ class PurchaseTicketsTest extends TestCase ]); $this->assertResponseStatus(201); + + $this->seeJsonSubset([ + 'email' => 'john@example.com', + 'ticket_quantity' => 3, + 'amount' => 9750, + ]); + $this->assertEquals(9750, $this->paymentGateway->totalCharges()); $this->assertTrue($concert->hasOrderFor('john@example.com')); $this->assertEquals(3, $concert->ordersFor('john@example.com')->first()->ticketQuantity());