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=5eed01cb2dafd80528772b2922a94fb4cdf32d79;hb=101493a70783b15656daa0686d404ac1a7a6976b;hpb=22806b0a4509e97b56fb52b387e17e3c80fb7eb2 diff --git a/tests/phpunit/includes/cache/LocalisationCacheTest.php b/tests/phpunit/includes/cache/LocalisationCacheTest.php index 5eed01cb2d..af1ff86515 100644 --- a/tests/phpunit/includes/cache/LocalisationCacheTest.php +++ b/tests/phpunit/includes/cache/LocalisationCacheTest.php @@ -1,4 +1,8 @@ getMockBuilder( 'LocalisationCache' ) - ->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(