Merge branch 'MDL-55082-master' of git://github.com/merrill-oakland/moodle
[moodle.git] / search / tests / fixtures / mock_search_area.php
index 1adfeef..1a46e0f 100644 (file)
@@ -29,6 +29,12 @@ defined('MOODLE_INTERNAL') || die;
 
 class mock_search_area extends \core_search\area\base {
 
+    /**
+     * Multiple context level so we can test get_areas_user_accesses.
+     * @var int[]
+     */
+    protected static $levels = [CONTEXT_SYSTEM, CONTEXT_USER];
+
     /**
      * To make things easier, base class required config stuff.
      *