public function AsseticExtensionTest::testOutputPattern

File

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

Class

AsseticExtensionTest

Namespace

Assetic\Test\Extension\Twig

Code

public function testOutputPattern() {
  $xml = $this
    ->renderXml('output_pattern.twig');
  $this
    ->assertEquals(1, count($xml->asset));
  $this
    ->assertStringStartsWith('css/packed/', (string) $xml->asset['url']);
  $this
    ->assertStringEndsWith('.css', (string) $xml->asset['url']);
}