MDL-24847 fixed incorrect unittest setup
authorPetr Skoda <skodak@moodle.org>
Tue, 26 Oct 2010 12:58:13 +0000 (12:58 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 26 Oct 2010 12:58:13 +0000 (12:58 +0000)
lib/simpletest/testaccesslib.php

index c8e0621..e979ebb 100644 (file)
@@ -124,6 +124,7 @@ class accesslib_test extends UnitTestCaseUsingDatabase {
 
         // And make user a into admin
         $CFG->siteadmins = $users['a']->id;
 
         // And make user a into admin
         $CFG->siteadmins = $users['a']->id;
+        $CFG->defaultuserroleid = $userrole;
 
         // And some group memebership.
         $gms = $this->load_test_data('groups_members',
 
         // And some group memebership.
         $gms = $this->load_test_data('groups_members',