FileHelperTest.php 393 Bytes
Newer Older
Nicolas Widart's avatar
Nicolas Widart committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php  namespace Modules\Media\Tests;

use Modules\Core\Tests\BaseTestCase;
use Modules\Media\Helpers\FileHelper;

class FileHelperTest extends BaseTestCase
{
    /** @test */
    public function it_should_return_slugged_name_with_extension()
    {
        $expected = 'file-name.png';
        $name = FileHelper::slug('File Name.png');

        $this->assertEquals($expected, $name);
    }
}