Merge branch 'MDL-58450_master' of git://github.com/dmonllao/moodle

This commit is contained in:
Dan Poltawski 2017-03-31 09:12:16 +01:00
commit acfab4cc7b

View File

@ -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);