mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
token test
This commit is contained in:
parent
b65f7ef627
commit
a368104fad
19
tests/TotpPfTest.php
Normal file
19
tests/TotpPfTest.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class TotpPfTest extends TestCase
|
||||
{
|
||||
|
||||
public function testBasic()
|
||||
{
|
||||
$x = new TotpPf('mailbox');
|
||||
$array = $x->generate('test@example.com');
|
||||
|
||||
$this->assertIsArray($array);
|
||||
$this->assertIsString($array[0]);
|
||||
$this->assertIsString($array[1]);
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user