summaryrefslogtreecommitdiff
path: root/tests/units/ToolTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-04-19 19:23:42 -0400
committerFrederic Guillot <fred@kanboard.net>2015-04-19 19:23:42 -0400
commitf190be9e2d4d285fb71d84e5d3884206067cf7af (patch)
treeca0c4bd21eeb85102731b79eb5dda526655ce82b /tests/units/ToolTest.php
parentac86c3100a1030026024c33c1cf02ec79f08ff51 (diff)
Add Sendgrid integration (incoming email handling)
Diffstat (limited to 'tests/units/ToolTest.php')
-rw-r--r--tests/units/ToolTest.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/units/ToolTest.php b/tests/units/ToolTest.php
new file mode 100644
index 00000000..4a62fe3b
--- /dev/null
+++ b/tests/units/ToolTest.php
@@ -0,0 +1,15 @@
+<?php
+
+require_once __DIR__.'/Base.php';
+
+use Core\Tool;
+
+class ToolTest extends Base
+{
+ public function testMailboxHash()
+ {
+ $this->assertEquals('test1', Tool::getMailboxHash('a+test1@localhost'));
+ $this->assertEquals('', Tool::getMailboxHash('test1@localhost'));
+ $this->assertEquals('', Tool::getMailboxHash('test1'));
+ }
+}