Skip to content

Commit

Permalink
Make false explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Sep 26, 2024
1 parent dc8a6a4 commit cf7d803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Auth/Eloquent/EloquentUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public function it_doesnt_run_gate_checks_on_non_statamic_users()
$model = $user->model();

Gate::define('some_ability', function ($user) {
return $user->shouldPass;
return false;
});

$result = Gate::forUser($model)->check('some_ability');
Expand Down

0 comments on commit cf7d803

Please sign in to comment.