summaryrefslogtreecommitdiff
path: root/tests/units/Auth/TotpAuthTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/Auth/TotpAuthTest.php')
-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');