mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
75 - Decoupling Data from Presentation
This commit is contained in:
@@ -40,7 +40,9 @@
|
||||
</div>
|
||||
<div class="media-body p-xs-l-4">
|
||||
<p class="wt-bold">
|
||||
{{ $ticket->concert->date->format('l, F j, Y') }}
|
||||
<time datetime="{{ $ticket->concert->date->format('Y-m-d H:i') }}">
|
||||
{{ $ticket->concert->date->format('l, F jS, Y') }}
|
||||
</time>
|
||||
</p>
|
||||
<p class="text-dark-soft">
|
||||
Doors at {{ $ticket->concert->date->format('g:ia') }}
|
||||
|
||||
@@ -45,12 +45,10 @@ class ViewOrderTest extends TestCase
|
||||
'code' => 'TICKETCODE456'
|
||||
]);
|
||||
|
||||
// Visit the order confirmation page
|
||||
$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;
|
||||
});
|
||||
@@ -67,8 +65,6 @@ class ViewOrderTest extends TestCase
|
||||
$response->assertSee('Laraville, ON');
|
||||
$response->assertSee('17916');
|
||||
$response->assertSee('john@example.com');
|
||||
|
||||
$response->assertSee('Sunday, March 12, 2017');
|
||||
$response->assertSee('Doors at 8:00pm');
|
||||
$response->assertSee('2017-03-12 20:00');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user