}
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 {