Fix FileBackendGroup test for some configurations
[lhc/web/wiklou.git] / tests / phpunit / includes / filebackend / FileBackendGroupIntegrationTest.php
index ee3262c..00fa1bb 100644 (file)
@@ -49,7 +49,11 @@ class FileBackendGroupIntegrationTest extends MediaWikiIntegrationTestCase {
                $services = MediaWikiServices::getInstance();
 
                foreach ( $serviceMembers as $key => $name ) {
-                       $this->$key = $services->getService( $name );
+                       if ( $key === 'srvCache' ) {
+                               $this->$key = ObjectCache::getLocalServerInstance( 'hash' );
+                       } else {
+                               $this->$key = $services->getService( $name );
+                       }
                }
 
                return FileBackendGroup::singleton();