mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-57791 analytics: Replace settings by get_archetype_roles
This commit is contained in:
parent
f39cebbb3c
commit
3a217fc394
8 changed files with 19 additions and 59 deletions
|
@ -54,10 +54,6 @@ class core_analytics_course_testcase extends advanced_testcase {
|
|||
$this->getDataGenerator()->enrol_user($this->both->id, $this->course->id, $this->editingteacherroleid);
|
||||
$this->getDataGenerator()->enrol_user($this->editingteacher->id, $this->course->id, $this->editingteacherroleid);
|
||||
$this->getDataGenerator()->enrol_user($this->teacher->id, $this->course->id, $this->teacherroleid);
|
||||
|
||||
|
||||
set_config('studentroles', $this->studentroleid, 'analytics');
|
||||
set_config('teacherroles', $this->editingteacherroleid . ',' . $this->teacherroleid, 'analytics');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue