Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class MethodTest extends SapphireTest |
||
10 | { |
||
11 | protected function setUp() |
||
16 | } |
||
17 | |||
18 | public function testIsAvailable() |
||
19 | { |
||
20 | $method = new Method(); |
||
21 | |||
22 | Environment::setEnv('SS_MFA_SECRET_KEY', ''); |
||
23 | $this->assertFalse($method->isAvailable()); |
||
24 | |||
25 | Environment::setEnv('SS_MFA_SECRET_KEY', 'foo123'); |
||
26 | $this->assertTrue($method->isAvailable()); |
||
27 | } |
||
28 | |||
29 | public function testDefaultTotpCodeLength() |
||
33 | } |
||
34 | } |
||
35 |