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