diff options
Diffstat (limited to 'tests/units')
-rw-r--r-- | tests/units/UserHelperTest.php | 17 |
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('漢字')); + } +} |