summaryrefslogtreecommitdiff
path: root/tests/units/Core/ToolTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-05 23:30:56 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-05 23:30:56 -0400
commit710f2c7bb046b43ec9878ae795a181101f6d7515 (patch)
treeb62723b6b49c3b6bf2b3ca41a772f552464a9031 /tests/units/Core/ToolTest.php
parent94b38dd94bd819168163003beec8ef693f9d9839 (diff)
Improve unit tests
Diffstat (limited to 'tests/units/Core/ToolTest.php')
-rw-r--r--tests/units/Core/ToolTest.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/units/Core/ToolTest.php b/tests/units/Core/ToolTest.php
new file mode 100644
index 00000000..e714f506
--- /dev/null
+++ b/tests/units/Core/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'));
+ }
+}