diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-02-10 21:09:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 21:09:20 +0100 |
commit | 7bacd710a16ab4ce334aba71e638469f2dad03b5 (patch) | |
tree | 05985754f37e9ec4095638beed2332826a69cca3 /tests | |
parent | d0cf4e2f584d8b13a14b12361cbedd45a783fe6d (diff) | |
parent | cd457cc68bf72b402b7757d4f039af48f1ac3d3f (diff) | |
download | nextcloud-server-7bacd710a16ab4ce334aba71e638469f2dad03b5.tar.gz nextcloud-server-7bacd710a16ab4ce334aba71e638469f2dad03b5.zip |
Merge pull request #25460 from nextcloud/fix/apppassword/always_renew
Always renew apppasswords on login
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php b/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php index 04e0fdb527e..f27100b5d78 100644 --- a/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php +++ b/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php @@ -548,8 +548,7 @@ class PublicKeyTokenProviderTest extends TestCase { IToken::PERMANENT_TOKEN, IToken::REMEMBER); - $this->mapper->expects($this->once()) - ->method('hasExpiredTokens') + $this->mapper->method('hasExpiredTokens') ->with($uid) ->willReturn(true); $this->mapper->expects($this->once()) @@ -564,19 +563,4 @@ class PublicKeyTokenProviderTest extends TestCase { $this->tokenProvider->updatePasswords($uid, 'bar2'); } - - public function testUpdatePasswordsNotRequired() { - $uid = 'myUID'; - - $this->mapper->expects($this->once()) - ->method('hasExpiredTokens') - ->with($uid) - ->willReturn(false); - $this->mapper->expects($this->never()) - ->method('getTokenByUser'); - $this->mapper->expects($this->never()) - ->method('update'); - - $this->tokenProvider->updatePasswords($uid, 'bar2'); - } } |