0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
postfixadmin/tests/MailboxHandlerTest.php
2019-02-18 21:20:07 +00:00

25 lines
556 B
PHP

<?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: */