Display user initials when tasks are in collapsed mode
This commit is contained in:
17
tests/units/UserHelperTest.php
Normal file
17
tests/units/UserHelperTest.php
Normal file
@@ -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('漢字'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user