public function AssetCollectionTest::testReplaceLeaf

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Asset/AssetCollectionTest.php, line 306

Class

AssetCollectionTest

Namespace

Assetic\Test\Asset

Code

public function testReplaceLeaf() {
  $coll = new AssetCollection(array(
    $leaf = new StringAsset('asdf'),
  ));
  $this
    ->assertTrue($coll
    ->replaceLeaf($leaf, new StringAsset('foo')));
}