Skip to content

Commit

Permalink
rector
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Mar 19, 2024
1 parent 6f9ece3 commit d8b077b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/Integration/Auth/CanDirectiveDBTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function testFailsToFindSpecificModel(): void
],
]);
}

public function testThrowsCustomExceptionWhenFailsToFindModel(): void
{
$user = new User();
Expand Down Expand Up @@ -129,7 +130,7 @@ public function testThrowsCustomExceptionWhenFailsToFindModel(): void
$previous = $error->getPrevious();

$this->assertNotNull($previous);
$this->assertSame(ClientSafeModelNotFoundException::class, get_class($previous));
$this->assertInstanceOf(ClientSafeModelNotFoundException::class, $previous);
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Auth/CanFindDirectiveDBTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function testThrowsCustomExceptionWhenFailsToFindModel(): void
$previous = $error->getPrevious();

$this->assertNotNull($previous);
$this->assertSame(ClientSafeModelNotFoundException::class, get_class($previous));
$this->assertInstanceOf(ClientSafeModelNotFoundException::class, $previous);
}
}

Expand Down

0 comments on commit d8b077b

Please sign in to comment.