diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-10-04 10:37:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 10:37:41 +0200 |
commit | 1896f374651aef4d3580eaedbb96c6c672d58a6b (patch) | |
tree | 2d43b246b4c6dccbadaeda60914d997d76f31f75 /tests | |
parent | f4707d178e4d0a85ca63b2e13bf8f897de9a941e (diff) | |
parent | 76a7600e2e8ee239c2f7dd19e8b3d1e86f7c5362 (diff) | |
download | nextcloud-server-1896f374651aef4d3580eaedbb96c6c672d58a6b.tar.gz nextcloud-server-1896f374651aef4d3580eaedbb96c6c672d58a6b.zip |
Merge pull request #22937 from nextcloud/enh/allow_configuring_token_auth_activity_interval
Allow configuring the activity update interval of token
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php b/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php index c16ee7b818e..a815025a509 100644 --- a/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php +++ b/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php @@ -112,6 +112,12 @@ class PublicKeyTokenProviderTest extends TestCase { public function testUpdateTokenDebounce() { $tk = new PublicKeyToken(); + + $this->config->method('getSystemValueInt') + ->willReturnCallback(function ($value, $default) { + return $default; + }); + $tk->setLastActivity($this->time - 30); $this->mapper->expects($this->never()) ->method('update') |