public function AsseticExtensionTest::testMixture

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Extension/Twig/AsseticExtensionTest.php, line 118

Class

AsseticExtensionTest

Namespace

Assetic\Test\Extension\Twig

Code

public function testMixture() {
  $asset = $this
    ->getMock('Assetic\\Asset\\AssetInterface');
  $this->am
    ->expects($this
    ->any())
    ->method('get')
    ->with('foo')
    ->will($this
    ->returnValue($asset));
  $xml = $this
    ->renderXml('mixture.twig');
  $this
    ->assertEquals(1, count($xml->asset));
  $this
    ->assertEquals('packed/mixture', (string) $xml->asset['url']);
}