File
- drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Asset/AssetCollectionTest.php, line 104
Class
- AssetCollectionTest
Namespace
Assetic\Test\Asset
Code
public function testDumpDedupBySourceUrl() {
$asset1 = new StringAsset('asset', array(), '/some/dir', 'foo.bar');
$asset2 = new StringAsset('asset', array(), '/some/dir', 'foo.bar');
$coll = new AssetCollection(array(
$asset1,
$asset2,
));
$coll
->load();
$this
->assertEquals('asset', $coll
->dump(), '->dump() detects duplicate assets based on source URL');
}