summaryrefslogtreecommitdiff
path: root/tests/units/UserHelperTest.php
blob: 749380c6467b7581e11ff4ffefd612abe87bac7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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('漢字'));
    }
}