'wgScript' => '/wiki/index.php',
'wgArticlePath' => '/wiki/$1',
'wgWellFormedXml' => true,
+ 'wgCapitalLinks' => true,
) );
if ( $title === false ) {
* @covers ParserOutput::addLanguageLink
*/
public function testUpdate_langlinks() {
+ $this->setMwGlobals( array(
+ 'wgCapitalLinks' => true,
+ ) );
+
/** @var ParserOutput $po */
list( $t, $po ) = $this->makeTitleAndParserOutput( "Testing", 111 );
$this->setMwGlobals( array(
'wgContLang' => Language::factory( 'en' ),
'wgLanguageCode' => 'en',
+ 'wgCapitalLinks' => true,
) );
}
* @covers WikiPage::getRedirectTarget
*/
public function testGetRedirectTarget( $title, $model, $text, $target ) {
+ $this->setMwGlobals( array(
+ 'wgCapitalLinks' => true,
+ ) );
+
$page = $this->createPage( $title, $text, $model );
# sanity check, because this test seems to fail for no reason for some people.
}
public function testTitlesGetNormalized() {
-
global $wgMetaNamespace;
+ $this->setMwGlobals( array(
+ 'wgCapitalLinks' => true,
+ ) );
+
$data = $this->doApiRequest( array(
'action' => 'query',
'titles' => 'Project:articleA|article_B' ) );
* @dataProvider provideTestTitlePartToKey
*/
function testTitlePartToKey( $titlePart, $namespace, $expected, $expectException ) {
+ $this->setMwGlobals( array(
+ 'wgCapitalLinks' => true,
+ ) );
+
$api = new MockApiQueryBase();
$exceptionCaught = false;
try {
),
'wgUseTidy' => false,
'wgAlwaysUseTidy' => false,
+ 'wgCapitalLinks' => true,
) );
// bypass hooks that force custom rendering
class MediaWikiSiteTest extends SiteTest {
public function testNormalizePageTitle() {
+ $this->setMwGlobals( array(
+ 'wgCapitalLinks' => true,
+ ) );
+
$site = new MediaWikiSite();
$site->setGlobalId( 'enwiki' );
'wgAllowUserJs' => false,
'wgDefaultLanguageVariant' => false,
'wgLocalInterwikis' => array( 'localtestiw' ),
+ 'wgCapitalLinks' => true,
// NOTE: this is why global state is evil.
// TODO: refactor access to the interwiki codes so it can be injected.