MDL-79155 core_course: Change default communication to none

This commit is contained in:
Safat 2023-09-06 12:53:56 +10:00
parent 00f0613f99
commit 44646941f8
2 changed files with 3 additions and 4 deletions

View File

@ -256,7 +256,7 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
new lang_string('communication', 'core_communication'), ''));
list($communicationproviders, $defaulprovider) = \core_communication\api::
get_enabled_providers_and_default('communication_matrix');
get_enabled_providers_and_default();
$temp->add(new admin_setting_configselect('moodlecourse/coursecommunicationprovider',
new lang_string('seleccommunicationprovider', 'communication'),

View File

@ -2,8 +2,7 @@
Feature: Course communication
In order to create a new communication room in for course
As an admin
I should have matrix plugin enabled by default
I should not have any plugins enabled by default for existing courses
I should not have any plugins enabled by default for new and existing courses
Background:
Given the following "courses" exist:
@ -21,7 +20,7 @@ Feature: Course communication
| Course short name | C2 |
And I press "Save and display"
When I navigate to "Communication" in current page administration
Then the field "Communication service" matches value "Matrix"
Then the field "Communication service" matches value "None"
Scenario: I should have communication disabled by default for existing courses
Given I am on "Course 1" course homepage