mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-29 16:50:12 +02:00
Added subdirectory test to asset view function test
This commit is contained in:
@@ -14,4 +14,14 @@ class AssetTest extends TestCase
|
||||
$this->assertEquals('/app/dist/css/app.css', $asset('css/app.css'));
|
||||
$this->assertEquals('/app/dist/js/app.js', $asset('js/app.js'));
|
||||
}
|
||||
|
||||
public function test_it_can_return_an_asset_with_a_subdirectory(): void
|
||||
{
|
||||
$_SERVER['SCRIPT_NAME'] = '/some/dir/index.php';
|
||||
|
||||
$asset = new Asset($this->container, $this->config);
|
||||
|
||||
$this->assertEquals('/some/dir/app/dist/css/app.css', $asset('css/app.css'));
|
||||
$this->assertEquals('/some/dir/app/dist/js/app.js', $asset('js/app.js'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user