public function AssetFactoryTest::testCreateGlobAsset

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Factory/AssetFactoryTest.php, line 94

Class

AssetFactoryTest

Namespace

Assetic\Test\Factory

Code

public function testCreateGlobAsset() {
  $assets = $this->factory
    ->createAsset(array(
    '*',
  ));
  $arr = iterator_to_array($assets);
  $this
    ->assertInstanceOf('Assetic\\Asset\\FileAsset', $arr[0], '->createAsset() uses a glob to create a file assets');
}