]> git.mjollnir.org Git - moodle.git/commitdiff
Fix pagelib unit tests.
authortjhunt <tjhunt>
Mon, 22 Jun 2009 06:30:21 +0000 (06:30 +0000)
committertjhunt <tjhunt>
Mon, 22 Jun 2009 06:30:21 +0000 (06:30 +0000)
lib/simpletest/testpagelib_moodlepage.php

index 86d96776f33a95ae0e46831e6973a231930799c4..331d908d2e8ea253196380236c6526f631432a39 100644 (file)
@@ -61,6 +61,8 @@ class moodle_page_test extends UnitTestCase {
         global $COURSE;
         $this->originalcourse = $COURSE;
         $this->testpage = new testable_moodle_page();
+        $this->testpage->blocks->add_regions(array('side-pre', 'side-post'));
+        $this->testpage->blocks->set_default_region('side-post');
     }
 
     public function tearDown() {