public function LazyAssetManagerTest::testGetResources

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Factory/LazyAssetManagerTest.php, line 59

Class

LazyAssetManagerTest

Namespace

Assetic\Test\Factory

Code

public function testGetResources() {
  $resources = array(
    $this
      ->getMock('Assetic\\Factory\\Resource\\ResourceInterface'),
    $this
      ->getMock('Assetic\\Factory\\Resource\\ResourceInterface'),
  );
  $this->am
    ->addResource($resources[0], 'foo');
  $this->am
    ->addResource($resources[1], 'bar');
  $ret = $this->am
    ->getResources();
  foreach ($resources as $resource) {
    $this
      ->assertTrue(in_array($resource, $ret, true));
  }
}