diff --git a/resources/views/orders/show.blade.php b/resources/views/orders/show.blade.php index ad74432..f3d44b0 100644 --- a/resources/views/orders/show.blade.php +++ b/resources/views/orders/show.blade.php @@ -40,7 +40,9 @@

- {{ $ticket->concert->date->format('l, F j, Y') }} +

Doors at {{ $ticket->concert->date->format('g:ia') }} diff --git a/tests/features/ViewOrderTest.php b/tests/features/ViewOrderTest.php index b31cf69..8aa9521 100644 --- a/tests/features/ViewOrderTest.php +++ b/tests/features/ViewOrderTest.php @@ -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'); } }