Page MenuHomeWickedGov Phorge

LanguageFallbackIntegrationTest.php
No OneTemporary

Size
838 B
Referenced Files
None
Subscribers
None

LanguageFallbackIntegrationTest.php

<?php
use MediaWiki\Languages\LanguageFallback;
use MediaWiki\MainConfigNames;
/**
* @group Language
* @covers \MediaWiki\Languages\LanguageFallback
*/
class LanguageFallbackIntegrationTest extends MediaWikiIntegrationTestCase {
use LanguageFallbackTestTrait;
private function getCallee( array $options = [] ) {
if ( isset( $options['siteLangCode'] ) ) {
$this->overrideConfigValue( MainConfigNames::LanguageCode, $options['siteLangCode'] );
}
if ( isset( $options['fallbackMap'] ) ) {
$this->setService( 'LocalisationCache', $this->getMockLocalisationCache(
1, $options['fallbackMap'] ) );
}
return $this->getServiceContainer()->getLanguageFallback();
}
private function getMessagesKey() {
return LanguageFallback::MESSAGES;
}
private function getStrictKey() {
return LanguageFallback::STRICT;
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Aug 19, 03:21 (2 w, 16 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a9/5d/d6ba7e992173970723a1bf639b3e
Default Alt Text
LanguageFallbackIntegrationTest.php (838 B)

Event Timeline