public function AssetCollectionTest::testLoadFilter

File

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

Class

AssetCollectionTest

Namespace

Assetic\Test\Asset

Code

public function testLoadFilter() {
  $filter = $this
    ->getMock('Assetic\\Filter\\FilterInterface');
  $filter
    ->expects($this
    ->once())
    ->method('filterLoad');
  $coll = new AssetCollection(array(
    new StringAsset(''),
  ), array(
    $filter,
  ));
  $coll
    ->load();
}