public function AssetManagerTest::testHas

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/AssetManagerTest.php, line 38

Class

AssetManagerTest

Namespace

Assetic\Test

Code

public function testHas() {
  $asset = $this
    ->getMock('Assetic\\Asset\\AssetInterface');
  $this->am
    ->set('foo', $asset);
  $this
    ->assertTrue($this->am
    ->has('foo'), '->has() returns true if the asset is set');
  $this
    ->assertFalse($this->am
    ->has('bar'), '->has() returns false if the asset is not set');
}