public function AsseticExtensionTest::testDebug

File

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

Class

AsseticExtensionTest

Namespace

Assetic\Test\Extension\Twig

Code

public function testDebug() {
  $filter = $this
    ->getMock('Assetic\\Filter\\FilterInterface');
  $this->fm
    ->expects($this
    ->once())
    ->method('get')
    ->with('bar')
    ->will($this
    ->returnValue($filter));
  $xml = $this
    ->renderXml('debug.twig');
  $this
    ->assertEquals(2, count($xml->asset));
  $this
    ->assertStringStartsWith('css/packed_', (string) $xml->asset[0]['url']);
  $this
    ->assertStringEndsWith('.css', (string) $xml->asset[0]['url']);
}