mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-30 20:46:36 +00:00
71 - Asserting Against View Data
This commit is contained in:
@@ -29,6 +29,10 @@ class ViewOrderTest extends TestCase
|
||||
$response = $this->get("/orders/ORDERCONFIRMATION1234");
|
||||
|
||||
$response->assertStatus(200);
|
||||
|
||||
// Assert we see the correct order details
|
||||
$response->assertViewHas('order', function ($viewOrder) use ($order) {
|
||||
return $order->id === $viewOrder->id;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user