public function AssetReferenceTest::testSetContent

File

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

Class

AssetReferenceTest

Namespace

Assetic\Test\Asset

Code

public function testSetContent() {
  $asset = $this
    ->getMock('Assetic\\Asset\\AssetInterface');
  $this->am
    ->expects($this
    ->once())
    ->method('get')
    ->with('foo')
    ->will($this
    ->returnValue($asset));
  $asset
    ->expects($this
    ->once())
    ->method('setContent')
    ->with('asdf');
  $this->ref
    ->setContent('asdf');
}