public function AssetFactoryTest::testCreateFileAsset

File

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

Class

AssetFactoryTest

Namespace

Assetic\Test\Factory

Code

public function testCreateFileAsset() {
  $assets = $this->factory
    ->createAsset(array(
    basename(__FILE__),
  ));
  $arr = iterator_to_array($assets);
  $this
    ->assertInstanceOf('Assetic\\Asset\\FileAsset', $arr[0], '->createAsset() creates a file asset');
}