Merge "docs: Fix typo"
[mediawiki.git] / tests / phpunit / includes / language / LanguageFallbackIntegrationTest.php
blob206f8ace2cd1c558db5c98e799a40d7cab766581
1 <?php
3 use MediaWiki\Languages\LanguageFallback;
4 use MediaWiki\MainConfigNames;
6 /**
7 * @group Language
8 * @covers \MediaWiki\Languages\LanguageFallback
9 */
10 class LanguageFallbackIntegrationTest extends MediaWikiIntegrationTestCase {
11 use LanguageFallbackTestTrait;
13 private function getCallee( array $options = [] ) {
14 if ( isset( $options['siteLangCode'] ) ) {
15 $this->overrideConfigValue( MainConfigNames::LanguageCode, $options['siteLangCode'] );
17 if ( isset( $options['fallbackMap'] ) ) {
18 $this->setService( 'LocalisationCache', $this->getMockLocalisationCache(
19 1, $options['fallbackMap'] ) );
21 return $this->getServiceContainer()->getLanguageFallback();
24 private function getMessagesKey() {
25 return LanguageFallback::MESSAGES;
28 private function getStrictKey() {
29 return LanguageFallback::STRICT;