Improve unit tests
This commit is contained in:
16
tests/units/Helper/UserHelperTest.php
Normal file
16
tests/units/Helper/UserHelperTest.php
Normal file
@@ -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'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user