test: ensure find or fail works correctly

This commit is contained in:
fiachra mcdermott 2021-07-04 14:04:51 -04:00
parent fbf40a7f19
commit 997c3e6144

View File

@ -36,3 +36,16 @@ Feature: Eloquent Relation Types
When I run Psalm When I run Psalm
Then I see no errors Then I see no errors
Scenario: find or fail support
Given I have the following code
"""
function test(): User
{
return User::findOrFail(1);
}
"""
When I run Psalm
Then I see no errors