Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6217809
)
MDL-24847 fixed incorrect unittest setup
author
Petr Skoda
<skodak@moodle.org>
Tue, 26 Oct 2010 12:58:13 +0000
(12:58 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Tue, 26 Oct 2010 12:58:13 +0000
(12:58 +0000)
lib/simpletest/testaccesslib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/simpletest/testaccesslib.php
b/lib/simpletest/testaccesslib.php
index
c8e0621
..
e979ebb
100644
(file)
--- a/
lib/simpletest/testaccesslib.php
+++ b/
lib/simpletest/testaccesslib.php
@@
-124,6
+124,7
@@
class accesslib_test extends UnitTestCaseUsingDatabase {
// 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',