mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Fix accesslib unit tests.
This commit is contained in:
parent
0c49b68d59
commit
b44b6c4599
@ -72,8 +72,8 @@ class accesslib_test extends UnitTestCaseUsingDatabase {
|
||||
/// Now is the correct moment to install capabilities - after creation of legacy roles, but before assigning of roles
|
||||
assign_capability('moodle/site:doanything', CAP_ALLOW, $adminrole, $syscontext->id);
|
||||
update_capabilities('moodle');
|
||||
update_capabilities('mod/forum');
|
||||
update_capabilities('mod/quiz');
|
||||
update_capabilities('mod_forum');
|
||||
update_capabilities('mod_quiz');
|
||||
|
||||
// Create some nested contexts. instanceid does not matter for this. Just
|
||||
// ensure we don't violate any unique keys by using an unlikely number.
|
||||
|
Loading…
x
Reference in New Issue
Block a user