2.5 - Adding Tickets to Orders

This commit is contained in:
Adam Wathan
2016-11-08 16:39:09 -05:00
parent 46640c5096
commit 25cc370adf
7 changed files with 103 additions and 1 deletions

View File

@@ -38,6 +38,6 @@ class PurchaseTicketsTest extends TestCase
// Make sure that an order exists for this customer
$order = $concert->orders()->where('email', 'john@example.com')->first();
$this->assertNotNull($order);
$this->assertEquals(3, $order->tickets->count());
$this->assertEquals(3, $order->tickets()->count());
}
}