mirror of
https://github.com/nextcloud/server.git
synced 2026-04-05 09:06:35 -04:00
fix: expect invalidateTokensOfUser only be called for seen users
Signed-off-by: Artur Neumann <artur@jankaritech.com>
This commit is contained in:
parent
cc44ec54ad
commit
84ee79fe43
1 changed files with 4 additions and 1 deletions
|
|
@ -123,10 +123,13 @@ class SettingsControllerTest extends TestCase {
|
|||
// count other users in the db before adding our own
|
||||
$count = 0;
|
||||
$function = function (IUser $user) use (&$count) {
|
||||
$count++;
|
||||
if ($user->getLastLogin() > 0) {
|
||||
$count++;
|
||||
}
|
||||
};
|
||||
$userManager->callForAllUsers($function);
|
||||
$user1 = $userManager->createUser('test101', 'test101');
|
||||
$user1->updateLastLoginTimestamp();
|
||||
$tokenProviderMock = $this->getMockBuilder(IAuthTokenProvider::class)->getMock();
|
||||
|
||||
// expect one call per user and ensure the correct client name
|
||||
|
|
|
|||
Loading…
Reference in a new issue