Skip to content

Commit

Permalink
add message expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Feb 20, 2024
1 parent ffee40d commit 296baad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Stache/Repositories/EntryRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public function test_find_or_fail_gets_entry()
public function test_find_or_fail_throws_exception_when_entry_does_not_exist()
{
$this->expectException(EntryNotFoundException::class);
$this->expectExceptionMessage('Entry [does-not-exist] not found');

$this->repo->findOrFail('does-not-exist');
}
Expand Down

0 comments on commit 296baad

Please sign in to comment.