lithium\tests\cases\net\http\MediaTest::testEmptyAssetPaths PHP Method

testEmptyAssetPaths() public method

Tests that empty asset paths correctly return the base path for the asset type, and don't generate notices or errors.
public testEmptyAssetPaths ( )
    public function testEmptyAssetPaths()
    {
        $this->assertEqual('/img/', Media::asset('', 'image'));
        $this->assertEqual('/css/.css', Media::asset('', 'css'));
        $this->assertEqual('/js/.js', Media::asset('', 'js'));
        $this->assertEqual('/', Media::asset('', 'generic'));
    }