Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Apr 12, 2024
1 parent b989985 commit b1ad38a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Feature/DatabaseUserProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,17 @@ public function test_failing_loudly_throws_exception_when_resolving_users()

$provider->retrieveByCredentials([]);
}

public function test_rehash_password_if_required_does_nothing_when_password_column_disabled()
{
$synchronizer = new UserSynchronizer(TestUserModelStub::class, [
'password_column' => false,
]);

$provider = $this->createDatabaseUserProvider(synchronizer: $synchronizer);

$provider->rehashPasswordIfRequired($model = new TestUserModelStub, ['password' => 'secret']);

$this->assertNull($model->password);
}
}

0 comments on commit b1ad38a

Please sign in to comment.