Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/twofactor_totp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-01-09 19:20:36 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-01-09 20:46:52 +0300
commit290994a0cb2105f8f22be2a16796a538dfa7f0cd (patch)
tree1a08c259e5901d64940e42b3c9ac13ed02df36f3 /tests
parent7a6f264a02f53d7ca7bd9707859e415d129b0937 (diff)
fix DI
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/Controller/SettingsControllerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/Controller/SettingsControllerTest.php b/tests/unit/Controller/SettingsControllerTest.php
index 4035c0f..f011c5d 100644
--- a/tests/unit/Controller/SettingsControllerTest.php
+++ b/tests/unit/Controller/SettingsControllerTest.php
@@ -24,7 +24,7 @@ namespace OCA\TwoFactorTOTP\Unit\Controller;
use Endroid\QrCode\QrCode;
use OCA\TwoFactorTOTP\Controller\SettingsController;
-use OCA\TwoFactorTOTP\Service\ITotp;
+use OCA\TwoFactorTOTP\Service\Totp;
use OCP\Defaults;
use OCP\IRequest;
use OCP\IUser;
@@ -46,7 +46,7 @@ class SettingsControllerTest extends TestCase {
$this->request = $this->createMock(IRequest::class);
$this->userSession = $this->createMock(IUserSession::class);
- $this->totp = $this->createMock(ITotp::class);
+ $this->totp = $this->createMock(Totp::class);
$this->defaults = new Defaults();
$this->controller = new SettingsController('twofactor_totp', $this->request, $this->userSession, $this->totp, $this->defaults);