138 - Upgrading to Laravel 5.5

This commit is contained in:
Adam Wathan
2017-09-11 16:24:01 -04:00
parent 4e00a17fa0
commit de0c35724f
5 changed files with 707 additions and 295 deletions

View File

@@ -47,13 +47,8 @@ class OrderTest extends TestCase
/** @test */
function retrieving_a_nonexistent_order_by_confirmation_number_throws_an_exception()
{
try {
Order::findByConfirmationNumber('NONEXISTENTCONFIRMATIONNUMBER');
} catch (ModelNotFoundException $e) {
return;
}
$this->fail('No matching order was found for the specified confirmation number, but an exception was not thrown.');
$this->expectException(ModelNotFoundException::class);
Order::findByConfirmationNumber('NONEXISTENTCONFIRMATIONNUMBER');
}
/** @test */