From: Chad Horohoe Date: Tue, 8 Jul 2014 03:30:18 +0000 (-0700) Subject: Force default search backend on search test X-Git-Tag: 1.31.0-rc.0~14954^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=1cf7eff66f3ca510ccda71f533ab997c119475ee;p=lhc%2Fweb%2Fwiklou.git Force default search backend on search test Other backends might not mimic this behavior. Having CirrusSearch enabled causes this test to fail. Change-Id: I462446cd2e5eaf43d843c066cb5d7596394429d8 --- diff --git a/tests/phpunit/includes/specials/SpecialSearchTest.php b/tests/phpunit/includes/specials/SpecialSearchTest.php index dbebeb7a3d..1f1d75071f 100644 --- a/tests/phpunit/includes/specials/SpecialSearchTest.php +++ b/tests/phpunit/includes/specials/SpecialSearchTest.php @@ -114,6 +114,9 @@ class SpecialSearchTest extends MediaWikiTestCase { * https://gerrit.wikimedia.org/r/4841 */ public function testSearchTermIsNotExpanded() { + $this->setMwGlobals( array( + 'wgSearchType' => null, + ) ); # Initialize [[Special::Search]] $search = new SpecialSearch();