mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-63620 group: Option to enable group messaging for imported groups
This commit is contained in:
parent
e5e5b37749
commit
c617a7271a
@ -83,7 +83,9 @@ if ($mform_post->is_cancelled()) {
|
||||
"groupidnumber" => 1,
|
||||
"description" => 1,
|
||||
"enrolmentkey" => 1,
|
||||
"groupingname" => 1);
|
||||
"groupingname" => 1,
|
||||
"enablemessaging" => 1,
|
||||
);
|
||||
|
||||
// --- get header (field names) ---
|
||||
$header = explode($csv_delimiter, array_shift($rawlines));
|
||||
|
@ -31,6 +31,17 @@ Feature: Importing of groups and groupings
|
||||
And I should see "group-id-1-duplicate"
|
||||
And I should see "group-noid-1"
|
||||
And I should see "group-noid-2"
|
||||
# Group messaging should have been enabled for group-id-1.
|
||||
And I set the field "groups" to "group-id-1"
|
||||
And I press "Edit group settings"
|
||||
And I should see "Yes" in the "Group messaging" "select"
|
||||
And I press "Cancel"
|
||||
# Group messaging should not have been enabled for group-id-2.
|
||||
And I set the field "groups" to "group-id-2"
|
||||
And I press "Edit group settings"
|
||||
And I should see "No" in the "Group messaging" "select"
|
||||
And I press "Cancel"
|
||||
# Check groupings
|
||||
And I follow "Groupings"
|
||||
And I should see "Grouping-1"
|
||||
And I should see "Grouping-2"
|
||||
|
12
group/tests/fixtures/groups_import.csv
vendored
12
group/tests/fixtures/groups_import.csv
vendored
@ -1,6 +1,6 @@
|
||||
groupname, description, groupidnumber,groupingname
|
||||
group-id-1, group-id-1, group-id-1,Grouping-1
|
||||
group-id-2, group-id-2, group-id-2,Grouping-2
|
||||
group-id-1-duplicate, Duplicate of group-id-1, group-id-1,Grouping-3
|
||||
group-noid-1, group-noid-1,,Grouping-3
|
||||
group-noid-2, group-noid-2,,Grouping-2
|
||||
groupname, description, groupidnumber,groupingname,enablemessaging
|
||||
group-id-1, group-id-1, group-id-1,Grouping-1,1
|
||||
group-id-2, group-id-2, group-id-2,Grouping-2,0
|
||||
group-id-1-duplicate, Duplicate of group-id-1, group-id-1,Grouping-3,0
|
||||
group-noid-1, group-noid-1,,Grouping-3,0
|
||||
group-noid-2, group-noid-2,,Grouping-2,0
|
||||
|
|
Loading…
x
Reference in New Issue
Block a user