diff options
author | Joas Schilling <coding@schilljs.com> | 2021-12-01 22:17:19 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-12-01 22:17:19 +0100 |
commit | c6ae53096c36e6a475467eaeb6df00ac8d38e4b2 (patch) | |
tree | 80deaa0d05a26564937a03d430197d1f6a57d30b /apps/settings/tests/Settings | |
parent | 9f001790379829096939015e790f0a35b6a38787 (diff) | |
download | nextcloud-server-c6ae53096c36e6a475467eaeb6df00ac8d38e4b2.tar.gz nextcloud-server-c6ae53096c36e6a475467eaeb6df00ac8d38e4b2.zip |
More test fixing
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/settings/tests/Settings')
-rw-r--r-- | apps/settings/tests/Settings/Personal/Security/AuthtokensTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/settings/tests/Settings/Personal/Security/AuthtokensTest.php b/apps/settings/tests/Settings/Personal/Security/AuthtokensTest.php index 3ee39c3624c..8fae0a44d8f 100644 --- a/apps/settings/tests/Settings/Personal/Security/AuthtokensTest.php +++ b/apps/settings/tests/Settings/Personal/Security/AuthtokensTest.php @@ -25,8 +25,8 @@ declare(strict_types=1); */ namespace OCA\Settings\Tests\Settings\Personal\Security; -use OC\Authentication\Token\DefaultToken; use OC\Authentication\Token\IProvider as IAuthTokenProvider; +use OC\Authentication\Token\PublicKeyToken; use OCA\Settings\Settings\Personal\Security\Authtokens; use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Services\IInitialState; @@ -74,15 +74,15 @@ class AuthtokensTest extends TestCase { } public function testGetForm() { - $token1 = new DefaultToken(); + $token1 = new PublicKeyToken(); $token1->setId(100); - $token2 = new DefaultToken(); + $token2 = new PublicKeyToken(); $token2->setId(200); $tokens = [ $token1, $token2, ]; - $sessionToken = new DefaultToken(); + $sessionToken = new PublicKeyToken(); $sessionToken->setId(100); $this->authTokenProvider->expects($this->once()) |