Skip to content

Commit

Permalink
tests: expand coverage of new L11 user methods
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Apr 1, 2024
1 parent 842946a commit 81e3cb4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/UserProviderAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ final public function getRepository(): UserRepositoryContract
* @param Authenticatable $user
* @param array $credentials
* @param bool $force
*
* @codeCoverageIgnore
*/
final public function rehashPasswordIfRequired(Authenticatable $user, array $credentials, bool $force = false): void
{
Expand Down
7 changes: 7 additions & 0 deletions tests/Unit/Users/UserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@
->toBe('');
});

it('supports getting the password name', function (): void {
$user = new ImposterUser();

expect($user->getAuthPasswordName())
->toBe('password');
});

it('supports getting the remember token', function (): void {
$user = new ImposterUser();

Expand Down

0 comments on commit 81e3cb4

Please sign in to comment.