summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-05 20:31:15 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-05 20:31:15 -0500
commite62779e26781c849bdc24f40e94330bec97f8069 (patch)
treefe72ffad1e8da07684d1400753ad6a2c794c21f5 /tests
parent811254ba93592de2470aee54cd21096d082b45ce (diff)
Improve 2FA
Diffstat (limited to 'tests')
-rw-r--r--tests/units/Auth/TotpAuthTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/units/Auth/TotpAuthTest.php b/tests/units/Auth/TotpAuthTest.php
index fcb7ea31..c8dcfb28 100644
--- a/tests/units/Auth/TotpAuthTest.php
+++ b/tests/units/Auth/TotpAuthTest.php
@@ -15,6 +15,9 @@ class TotpAuthTest extends Base
public function testGetSecret()
{
$provider = new TotpAuth($this->container);
+ $this->assertEmpty($provider->getSecret());
+
+ $provider->generateSecret();
$secret = $provider->getSecret();
$this->assertNotEmpty($secret);
@@ -48,7 +51,7 @@ class TotpAuthTest extends Base
{
$provider = new TotpAuth($this->container);
- $secret = $provider->getSecret();
+ $secret = $provider->generateSecret();
$this->assertNotEmpty($secret);
$provider->setCode('1234');