public function testGetJSURLAddsJsPathIfSpecified() { // check one may not hit cache $this->assertRegExp('/style-min\\.js\\?/', $this->_themeObject->getJSURL('style.js')); // check two definitely should hit cache $this->assertRegExp('/style-min\\.js\\?/', $this->_themeObject->getJSURL('style.js')); // check three for the jspath not being added $this->assertNotContains('?', $this->_themeObject->getJSURL('style.js', false)); }