From 60876f2f0902a8f3740fa80b776ba40d259a8bb6 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Wed, 27 Jan 2016 10:24:57 +0100 Subject: [PATCH] :white_check_mark: Test Assets::exists() --- tests/unit/Grav/Common/AssetsTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/Grav/Common/AssetsTest.php b/tests/unit/Grav/Common/AssetsTest.php index b7f2d1f6c..577ed479a 100644 --- a/tests/unit/Grav/Common/AssetsTest.php +++ b/tests/unit/Grav/Common/AssetsTest.php @@ -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')); } } \ No newline at end of file