Merge "Indicate the actual version of HHVM in use"
[lhc/web/wiklou.git] / tests / phpunit / includes / resourceloader / ResourceLoaderModuleTest.php
index e98f0e8..b0edaaf 100644 (file)
@@ -5,9 +5,14 @@ class ResourceLoaderModuleTest extends ResourceLoaderTestCase {
        protected function setUp() {
                parent::setUp();
 
-               $this->setMwGlobals( array(
-                       'wgValidSkinNames' => array( 'vector' => 'Vector' ),
-               ) );
+               // The return value of the closure shouldn't matter since this test should
+               // never call it
+               SkinFactory::getDefaultInstance()->register(
+                       'fakeskin',
+                       'FakeSkin',
+                       function () {
+                       }
+               );
        }
 
        /**
@@ -29,7 +34,7 @@ class ResourceLoaderModuleTest extends ResourceLoaderTestCase {
                        ),
                        'skinStyles' => array(
                                'default' => 'quux-fallback.less',
-                               'vector' => array(
+                               'fakeskin' => array(
                                        'baz-vector.css',
                                        'quux-vector.less',
                                ),