diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-01-22 16:59:19 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-01-22 18:57:45 +0300 |
commit | 93cdcbb8ca812fee521692f972bb29f9a0d543d3 (patch) | |
tree | 8840da9936baaf4a4a2bc3239e0cc0855bc31d6f /tests | |
parent | 78375a092490979623d18062519234fcf144c13a (diff) |
Drop Nextcloud 20 support
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Provider/TotpProviderTest.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/Unit/Provider/TotpProviderTest.php b/tests/Unit/Provider/TotpProviderTest.php index e93e3cb..f630263 100644 --- a/tests/Unit/Provider/TotpProviderTest.php +++ b/tests/Unit/Provider/TotpProviderTest.php @@ -32,7 +32,7 @@ use OCA\TwoFactorTOTP\Provider\TotpProvider; use OCA\TwoFactorTOTP\Service\ITotp; use OCA\TwoFactorTOTP\Settings\Personal; use OCP\AppFramework\IAppContainer; -use OCP\IInitialStateService; +use OCP\AppFramework\Services\IInitialState; use OCP\IL10N; use OCP\IURLGenerator; use OCP\IUser; @@ -64,7 +64,7 @@ class TotpProviderTest extends TestCase { $this->totp = $this->createMock(ITotp::class); $this->l10n = $this->createMock(IL10N::class); $this->container = $this->createMock(IAppContainer::class); - $this->initialState = $this->createMock(IInitialStateService::class); + $this->initialState = $this->createMock(IInitialState::class); $this->urlGenerator = $this->createMock(IURLGenerator::class); $this->provider = new TotpProvider( @@ -136,7 +136,6 @@ class TotpProviderTest extends TestCase { $this->initialState->expects($this->once()) ->method('provideInitialState') ->with( - 'twofactor_totp', 'state', true ); |