public function testGetPublicPath() { $assetMapper =
$this->
createAssetMapper();
$file1Asset =
new MappedAsset('file1.css', publicPath: '/final-assets/file1-the-checksum.css'
);
$this->mappedAssetFactory->
expects($this->
once()) ->
method('createMappedAsset'
) ->
willReturn($file1Asset);
$this->
assertSame('/final-assets/file1-the-checksum.css',
$assetMapper->
getPublicPath('file1.css'
));
// check the manifest is used
$this->
assertSame('/final-assets/file4.checksumfrommanifest.js',
$assetMapper->
getPublicPath('file4.js'
));
} public function testAllAssets() { $assetMapper =
$this->
createAssetMapper();
$this->mappedAssetFactory->
expects($this->
exactly(8
)) ->
method('createMappedAsset'
)