MDL-23979 adding missing context init code
authorPetr Skoda <skodak@moodle.org>
Sat, 28 Aug 2010 11:57:50 +0000 (11:57 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 28 Aug 2010 11:57:50 +0000 (11:57 +0000)
lib/simpletest/testblocklib_blockmanager.php

index f9c33c1..be44861 100644 (file)
@@ -62,6 +62,7 @@ class moodle_block_manager_test extends UnitTestCase {
 
     public function setUp() {
         $this->testpage = new moodle_page();
+        $this->testpage->set_context(get_context_instance(CONTEXT_SYSTEM));
         $this->blockmanager = new testable_block_manager($this->testpage);
     }