X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FResourceLoaderTestCase.php;h=cadd0ff3c776133d4051bce7f3ea70a2b0770012;hb=6866cfec3731409994b3edf857504e8674c00a8e;hp=d5c14a2558d34cc063240cd3ca8d00c7fd988a4c;hpb=c9d8188f1ee27e8a816949bf6b74e340156aafc7;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/ResourceLoaderTestCase.php b/tests/phpunit/ResourceLoaderTestCase.php index d5c14a2558..cadd0ff3c7 100644 --- a/tests/phpunit/ResourceLoaderTestCase.php +++ b/tests/phpunit/ResourceLoaderTestCase.php @@ -31,12 +31,14 @@ abstract class ResourceLoaderTestCase extends MediaWikiTestCase { 'skin' => 'vector', 'modules' => 'startup', 'only' => 'scripts', + 'safemode' => null, ]; $resourceLoader = $rl ?: new ResourceLoader(); $request = new FauxRequest( [ 'lang' => $options['lang'], 'modules' => $options['modules'], 'only' => $options['only'], + 'safemode' => $options['safemode'], 'skin' => $options['skin'], 'target' => 'phpunit', ] ); @@ -141,7 +143,7 @@ class ResourceLoaderTestModule extends ResourceLoaderModule { } public function shouldEmbedModule( ResourceLoaderContext $context ) { - return $this->shouldEmbed !== null ? $this->shouldEmbed : parent::shouldEmbedModule( $context ); + return $this->shouldEmbed ?? parent::shouldEmbedModule( $context ); } public function enableModuleContentVersion() {