summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-04 20:12:17 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-04 20:12:17 -0400
commitc231b65cfc54aad8b143a76e19c6aea428f42a5c (patch)
tree0550e6185d8681f354dae42d2d44a2466e37a8af /tests
parent0a9ad08e9e98645b8d8d53a0d4f56558a2aa8a78 (diff)
Display user initials when tasks are in collapsed mode
Diffstat (limited to 'tests')
-rw-r--r--tests/units/UserHelperTest.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/units/UserHelperTest.php b/tests/units/UserHelperTest.php
new file mode 100644
index 00000000..749380c6
--- /dev/null
+++ b/tests/units/UserHelperTest.php
@@ -0,0 +1,17 @@
+<?php
+
+require_once __DIR__.'/Base.php';
+
+use Helper\User;
+
+class UserHelperTest extends Base
+{
+ public function testInitials()
+ {
+ $h = new User($this->container);
+
+ $this->assertEquals('CN', $h->getInitials('chuck norris'));
+ $this->assertEquals('A', $h->getInitials('admin'));
+ $this->assertEquals('漢', $h->getInitials('漢字'));
+ }
+}