summaryrefslogtreecommitdiff
path: root/tests/units/Helper/UserHelperTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/Helper/UserHelperTest.php')
-rw-r--r--tests/units/Helper/UserHelperTest.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/units/Helper/UserHelperTest.php b/tests/units/Helper/UserHelperTest.php
new file mode 100644
index 00000000..947f606a
--- /dev/null
+++ b/tests/units/Helper/UserHelperTest.php
@@ -0,0 +1,16 @@
+<?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'));
+ }
+}