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>2018-10-15 17:32:27 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-18 16:24:55 +0300
commitaa5de5f0f19fa4b470e97e86857211372e1f0d91 (patch)
treec47a63c2d9feac0b014e42bacafaa00efad75e1e /tests
parentbc7c957aa5ec6e9f7e330c8a4ec2183842eb7907 (diff)
Migrate to Vue
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Provider/TotpProviderTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Unit/Provider/TotpProviderTest.php b/tests/Unit/Provider/TotpProviderTest.php
index d706210..0f69343 100644
--- a/tests/Unit/Provider/TotpProviderTest.php
+++ b/tests/Unit/Provider/TotpProviderTest.php
@@ -101,8 +101,12 @@ class TotpProviderTest extends TestCase {
}
public function testGetPersonalSettings() {
- $expected = new Personal();
+ $expected = new Personal(ITotp::STATE_ENABLED);
$user = $this->createMock(IUser::class);
+ $this->totp->expects($this->once())
+ ->method('hasSecret')
+ ->with($user)
+ ->willReturn(true);
$actual = $this->provider->getPersonalSettings($user);