Set wgScript in LinkerTest
authoraude <aude.wiki@gmail.com>
Tue, 24 Jun 2014 07:39:17 +0000 (09:39 +0200)
committeraude <aude.wiki@gmail.com>
Tue, 24 Jun 2014 07:39:17 +0000 (09:39 +0200)
otherwise tests fail if you don't have this setting.

Change-Id: I598b83c348dc54908225ee398787bf300d473656

tests/phpunit/includes/LinkerTest.php

index 9889b08..4d62cc7 100644 (file)
@@ -91,6 +91,7 @@ class LinkerTest extends MediaWikiLangTestCase {
         */
        public function testFormatComment( $expected, $comment, $title = false, $local = false ) {
                $this->setMwGlobals( array(
+                       'wgScript' => '/wiki/index.php',
                        'wgArticlePath' => '/wiki/$1',
                        'wgWellFormedXml' => true,
                ) );