Fixes #4075: Added CClientScript::hasPackage()

This commit is contained in:
Alexander Makarov
2017-03-24 00:13:36 +03:00
committed by GitHub
parent 9b14ff3e3f
commit 6771558d0c
3 changed files with 30 additions and 0 deletions

View File

@@ -91,6 +91,12 @@ class CClientScriptTest extends CTestCase
);
}
public function testHasPackage()
{
$this->assertTrue($this->_clientScript->hasPackage('jquery'));
$this->assertFalse($this->_clientScript->hasPackage('nonexisting'));
}
/**
* @dataProvider providerScriptFiles
*