0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
postfixadmin/tests/MailboxHandlerTest.php

25 lines
556 B
PHP
Raw Normal View History

2019-02-18 22:20:07 +01:00
<?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: */