Skip to content

Commit

Permalink
add null check test
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 30, 2020
1 parent 1e73e08 commit 75ad66c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Integration/Auth/GatePolicyResolutionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public function testPolicyCanBeGuessedUsingClassConventions()
AuthenticationTestUserPolicy::class,
Gate::getPolicyFor(Fixtures\Models\AuthenticationTestUser::class)
);

$this->assertNull(
Gate::getPolicyFor(static::class)
);
}

public function testPolicyCanBeGuessedUsingCallback()
Expand Down

0 comments on commit 75ad66c

Please sign in to comment.