From e9ed15143e2a62e3c508dfddea1f22f547f75aa1 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Mon, 18 Feb 2019 21:20:07 +0000 Subject: [PATCH] add token MailboxHandler test --- tests/MailboxHandlerTest.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/MailboxHandlerTest.php diff --git a/tests/MailboxHandlerTest.php b/tests/MailboxHandlerTest.php new file mode 100644 index 00000000..a6b53012 --- /dev/null +++ b/tests/MailboxHandlerTest.php @@ -0,0 +1,24 @@ +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: */