]> git.mjollnir.org Git - moodle.git/commitdiff
Fix notice in blockmanager unit tests.
authortjhunt <tjhunt>
Mon, 22 Jun 2009 07:26:50 +0000 (07:26 +0000)
committertjhunt <tjhunt>
Mon, 22 Jun 2009 07:26:50 +0000 (07:26 +0000)
lib/simpletest/testblocklib_blockmanager.php

index 583e48a26eb4db39ae9475c56baf1d60cea1e1e2..8d8796d3ab0223ca7b7227448fbd6aa25c354e62 100644 (file)
@@ -252,6 +252,7 @@ class moodle_block_manager_test_saving_loading extends UnitTestCaseUsingDatabase
         $syscontext = get_context_instance(CONTEXT_SYSTEM);
         $fakecontext = new stdClass;
         $fakecontext->id = $syscontext->id + 1;
+        $fakecontext->contextlevel = CONTEXT_COURSECAT;
         $regionname = 'a-region';
         $blockname = $this->get_a_known_block_type();