mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-02 04:47:35 +00:00
138 - Upgrading to Laravel 5.5
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user