Improve unit tests
This commit is contained in:
15
tests/units/Helper/FileHelperText.php
Normal file
15
tests/units/Helper/FileHelperText.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/../Base.php';
|
||||
|
||||
use Helper\File;
|
||||
|
||||
class FileHelperTest extends Base
|
||||
{
|
||||
public function testIcon()
|
||||
{
|
||||
$h = new File($this->container);
|
||||
$this->assertEquals('fa-file-image-o', $h->icon('test.png'));
|
||||
$this->assertEquals('fa-file-o', $h->icon('test'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user