3 use MediaWiki\Languages\LanguageFallback
;
4 use MediaWiki\MainConfigNames
;
8 * @covers \MediaWiki\Languages\LanguageFallback
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
;