public function AssetReferenceTest::testLoad

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Asset/AssetReferenceTest.php, line 95

Class

AssetReferenceTest

Namespace

Assetic\Test\Asset

Code

public function testLoad() {
  $filter = $this
    ->getMock('Assetic\\Filter\\FilterInterface');
  $asset = $this
    ->getMock('Assetic\\Asset\\AssetInterface');
  $this->am
    ->expects($this
    ->exactly(2))
    ->method('get')
    ->with('foo')
    ->will($this
    ->returnValue($asset));
  $asset
    ->expects($this
    ->once())
    ->method('load')
    ->with($filter);
  $this->ref
    ->load($filter);
}