MDL-60913 search: fix unit test expectation. Default is core-other
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 23 Jan 2019 22:01:37 +0000 (23:01 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 23 Jan 2019 22:02:41 +0000 (23:02 +0100)
search/tests/base_test.php

index dcce079..d6015ee 100644 (file)
@@ -166,7 +166,7 @@ class search_base_testcase extends advanced_testcase {
         $builder->disableOriginalConstructor();
         $stub = $builder->getMockForAbstractClass();
 
         $builder->disableOriginalConstructor();
         $stub = $builder->getMockForAbstractClass();
 
-        $expected = ['core-course-content'];
+        $expected = ['core-other'];
         $this->assertEquals($expected, $stub->get_category_names());
     }
 }
         $this->assertEquals($expected, $stub->get_category_names());
     }
 }