X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fcache%2FLocalisationCacheTest.php;h=af1ff86515e6e9bb86806d3d99a28a48b3f0bf7f;hp=42957b6084318979b484cfc489efbb7bed2bace3;hb=101493a70783b15656daa0686d404ac1a7a6976b;hpb=c5d8c752d5d31fa746d89234bec789bc52272476 diff --git a/tests/phpunit/includes/cache/LocalisationCacheTest.php b/tests/phpunit/includes/cache/LocalisationCacheTest.php index 42957b6084..af1ff86515 100644 --- a/tests/phpunit/includes/cache/LocalisationCacheTest.php +++ b/tests/phpunit/includes/cache/LocalisationCacheTest.php @@ -1,4 +1,8 @@ getMockBuilder( \LocalisationCache::class ) - ->setConstructorArgs( [ [ 'store' => 'detect' ] ] ) + + $lc = $this->getMockBuilder( LocalisationCache::class ) + ->setConstructorArgs( [ + new ServiceOptions( LocalisationCache::CONSTRUCTOR_OPTIONS, [ + 'forceRecache' => false, + 'manualRecache' => false, + 'ExtensionMessagesFiles' => [], + 'MessagesDirs' => [], + ] ), + new LCStoreDB( [] ), + new NullLogger + ] ) ->setMethods( [ 'getMessagesDirs' ] ) ->getMock(); $lc->expects( $this->any() )->method( 'getMessagesDirs' ) @@ -31,7 +45,7 @@ class LocalisationCacheTest extends MediaWikiTestCase { return $lc; } - public function testPuralRulesFallback() { + public function testPluralRulesFallback() { $cache = $this->getMockLocalisationCache(); $this->assertEquals(