You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
556 B
PHTML
25 lines
556 B
PHTML
6 years ago
|
<?php
|
||
|
|
||
|
class MailboxHandlerTest extends \PHPUnit\Framework\TestCase {
|
||
|
public function testBasic() {
|
||
|
$x = new MailboxHandler();
|
||
|
|
||
|
$list = $x->getList("");
|
||
|
|
||
|
$this->assertTrue($list);
|
||
|
|
||
|
|
||
|
$results = $x->result();
|
||
|
|
||
|
$this->assertEmpty($results);
|
||
|
|
||
|
$this->assertFalse($x->checkPasswordRecoveryCode('test', 'fake'));
|
||
|
|
||
|
$token = $x->getPasswordRecoveryCode('test.peraon.does.not.exist@example.com');
|
||
|
|
||
|
$this->assertFalse($token);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
|