Merge "resourceloader: Warn on ResourceLoader::construct without Config"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 10 Jun 2019 23:43:21 +0000 (23:43 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 10 Jun 2019 23:43:21 +0000 (23:43 +0000)
1  2 
tests/phpunit/includes/resourceloader/DerivativeResourceLoaderContextTest.php

@@@ -16,7 -16,10 +16,10 @@@ class DerivativeResourceLoaderContextTe
                                'skin' => 'fallback',
                                'target' => 'test',
                ] );
-               return new ResourceLoaderContext( new ResourceLoader(), $request );
+               return new ResourceLoaderContext(
+                       new ResourceLoader( ResourceLoaderTestCase::getMinimalConfig() ),
+                       $request
+               );
        }
  
        public function testChangeModules() {
@@@ -30,7 -33,6 +33,7 @@@
        public function testChangeLanguageAndDirection() {
                $derived = new DerivativeResourceLoaderContext( self::makeContext() );
                $this->assertSame( $derived->getLanguage(), 'qqx', 'inherit from parent' );
 +              $this->assertSame( $derived->getDirection(), 'ltr', 'inherit from parent' );
  
                $derived->setLanguage( 'nl' );
                $this->assertSame( $derived->getLanguage(), 'nl' );