Test Assets::exists()

This commit is contained in:
Flavio Copes
2016-01-27 10:24:57 +01:00
parent 74fdca79f0
commit 60876f2f09

View File

@@ -340,6 +340,12 @@ class AssetsTest extends \Codeception\TestCase\Test
$this->assertTrue(in_array('system://assets/jquery/jquery-2.x.min.js', $assets->getCollections()));
}
public function testExists()
{
$assets = $this->assets();
$this->assertTrue($assets->exists('jquery'));
$this->assertFalse($assets->exists('another-unexisting-library'));
}
}