This parameter was introduced last year as a way to extract
bare scripts from modules without any 'mw.loader.state()' suffix.
When ResourceFileCache is used ($wgUseFileCache) this causes
cache pollution as it didn't include getRaw() in the hash.
Change-Id: I7b9f9b6a5756777462395b911abafb62468cbefa
// Request vary
$this->getOnly(),
$this->getVersion(),
// Request vary
$this->getOnly(),
$this->getVersion(),
$this->getImage(),
$this->getVariant(),
$this->getFormat(),
$this->getImage(),
$this->getVariant(),
$this->getFormat(),
$this->assertEquals( $derived->getModules(), array( 'test.context' ) );
$this->assertEquals( $derived->getOnly(), 'scripts' );
$this->assertEquals( $derived->getSkin(), 'fallback' );
$this->assertEquals( $derived->getModules(), array( 'test.context' ) );
$this->assertEquals( $derived->getOnly(), 'scripts' );
$this->assertEquals( $derived->getSkin(), 'fallback' );
- $this->assertEquals( $derived->getHash(), 'zh|fallback|||scripts||||' );
+ $this->assertEquals( $derived->getHash(), 'zh|fallback|||scripts|||||' );
}
public function testSetLanguage() {
}
public function testSetLanguage() {
$derived->setLanguage( 'nl' );
// Assert that subclass is able to clear parent class "hash" member
$derived->setLanguage( 'nl' );
// Assert that subclass is able to clear parent class "hash" member
- $this->assertEquals( $derived->getHash(), 'nl|fallback|||scripts||||' );
+ $this->assertEquals( $derived->getHash(), 'nl|fallback|||scripts|||||' );