mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-58450_master' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
acfab4cc7b
@ -2023,9 +2023,9 @@ class mod_forum_lib_testcase extends advanced_testcase {
|
||||
$cm = get_coursemodule_from_instance('forum', $forum->id);
|
||||
|
||||
// Create groups.
|
||||
$group1 = self::getDataGenerator()->create_group(array('courseid' => $course->id));
|
||||
$group2 = self::getDataGenerator()->create_group(array('courseid' => $course->id));
|
||||
$group3 = self::getDataGenerator()->create_group(array('courseid' => $course->id));
|
||||
$group1 = self::getDataGenerator()->create_group(array('courseid' => $course->id, 'name' => 'group1'));
|
||||
$group2 = self::getDataGenerator()->create_group(array('courseid' => $course->id, 'name' => 'group2'));
|
||||
$group3 = self::getDataGenerator()->create_group(array('courseid' => $course->id, 'name' => 'group3'));
|
||||
|
||||
// Add the user1 to g1 and g2 groups.
|
||||
groups_add_member($group1->id, $user1->id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user