From 1f0f002e1de0bc738065e273cfad4855fd67a7b4 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Thu, 29 Oct 2015 12:54:45 +0100 Subject: [PATCH] MDL-51939 mod_forum: all participants discussions are viewed by students Added scenario to verify that "all participants" discussions, under separate-groups mode are, by default, visible for students. --- mod/forum/tests/behat/separate_group_discussions.feature | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mod/forum/tests/behat/separate_group_discussions.feature b/mod/forum/tests/behat/separate_group_discussions.feature index 2a99b8c4ef9..30e5b506924 100644 --- a/mod/forum/tests/behat/separate_group_discussions.feature +++ b/mod/forum/tests/behat/separate_group_discussions.feature @@ -239,3 +239,16 @@ Feature: Posting to all groups in a separate group discussion is restricted to u And the "Group" select box should contain "Group A" And the "Group" select box should contain "Group B" And I should see "Post a copy to all groups" + + Scenario: Students can view all participants discussions in separate groups mode + Given I log in as "teacher1" + And I follow "Course 1" + When I add a new discussion to "Standard forum name" forum with: + | Subject | Forum post to all participants | + | Message | This is the body | + | Group | All participants | + And I log out + And I log in as "student1" + And I follow "Course 1" + And I follow "Standard forum name" + Then I should see "Forum post to all participants" -- 2.11.4.GIT