mirror of
https://github.com/getgrav/grav.git
synced 2026-03-20 03:21:36 +01:00
✅ Test Assets::exists()
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user