Force default search backend on search test
authorChad Horohoe <chadh@wikimedia.org>
Tue, 8 Jul 2014 03:30:18 +0000 (20:30 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Tue, 8 Jul 2014 03:30:18 +0000 (20:30 -0700)
Other backends might not mimic this behavior. Having CirrusSearch
enabled causes this test to fail.

Change-Id: I462446cd2e5eaf43d843c066cb5d7596394429d8

tests/phpunit/includes/specials/SpecialSearchTest.php

index dbebeb7..1f1d750 100644 (file)
@@ -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();