AsseticBundleTest\CacheBuster\LastModifiedStrategyTest::testAssetLastModifiedTimestampIsPrependBeforeFileExtension PHP Method

testAssetLastModifiedTimestampIsPrependBeforeFileExtension() public method

    public function testAssetLastModifiedTimestampIsPrependBeforeFileExtension()
    {
        $asset = new FileAsset(TEST_ASSETS_DIR . '/css/global.css');
        $asset->setTargetPath(TEST_PUBLIC_DIR . '/css/global.css');
        $factory = new AssetFactory('');
        $this->cacheBuster->process($asset, $factory);
        $this->assertSame(TEST_PUBLIC_DIR . '/css/global.' . $asset->getLastModified() . '.css', $asset->getTargetPath());
    }