Merge branch 'MDL-61801-33' of git://github.com/andrewnicols/moodle into MOODLE_33_STABLE
[moodle.git] / admin / tests / behat / set_admin_settings_value.feature
blobffe69cb0fdb8cba2aacdec6be53a959296319fd5
1 @core @core_admin
2 Feature: Set admin settings value
3   In order to set admin settings value
4   As an admin
5   I need to set admin setting value and verify it is applied
7   Background:
8     Given the following "courses" exist:
9       | fullname | shortname | category |
10       | Course fullname | C_shortname | 0 |
11     And I log in as "admin"
12     And I am on site homepage
13     And I should see "Course fullname"
14     And I should not see "C_shortname Course fullname"
16   Scenario: set admin value with full name
17     Given the following config values are set as admin:
18       | courselistshortnames | 1 |
19     And I am on site homepage
20     Then I should see "C_shortname Course fullname"
22   Scenario: set admin value with short name
23     Given the following config values are set as admin:
24       | courselistshortnames | 1 |
25     And I am on site homepage
26     Then I should see "C_shortname Course fullname"