MDL-62183 search_solr: Set solr as search engine for solr unit tests
authorDavid Monllao <davidm@moodle.com>
Tue, 24 Apr 2018 11:12:15 +0000 (13:12 +0200)
committerDavid Monllao <davidm@moodle.com>
Tue, 24 Apr 2018 11:12:48 +0000 (13:12 +0200)
search/engine/solr/tests/engine_test.php

index 95240f1..d8c8c89 100644 (file)
@@ -71,6 +71,7 @@ class search_solr_engine_testcase extends advanced_testcase {
     public function setUp() {
         $this->resetAfterTest();
         set_config('enableglobalsearch', true);
+        set_config('searchengine', 'solr');
 
         if (!function_exists('solr_get_version')) {
             $this->markTestSkipped('Solr extension is not loaded.');