mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-63282 core_message: Setting messagingallusers = 1 for behat tests
Default setting value for new instances is 0 Default setting value for existing instances is 1 to get same search results than before this setting exists Setting messagingallusers = 1 for behat tests to simulate old versions functionality Followup: MDL-63911
This commit is contained in:
parent
548cac7dbf
commit
36e23989b0
@ -16,6 +16,9 @@ Feature: Message popover unread messages
|
||||
| user | course | role |
|
||||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And the following config values are set as admin:
|
||||
| messaging | 1 |
|
||||
| messagingallusers | 1 |
|
||||
And I log in as "student2"
|
||||
And I send "Test message" message to "Student 1" user
|
||||
And I log out
|
||||
|
@ -16,6 +16,9 @@ Feature: Delete all messages
|
||||
| user | course | role |
|
||||
| user1 | C1 | student |
|
||||
| user2 | C1 | student |
|
||||
And the following config values are set as admin:
|
||||
| messaging | 1 |
|
||||
| messagingallusers | 1 |
|
||||
And I log in as "user2"
|
||||
And I send "User 2 to User 1 message 1" message to "User 1" user
|
||||
And I send "User 2 to User 1 message 2" message in the message area
|
||||
|
@ -16,6 +16,9 @@ Feature: Delete messages
|
||||
| user | course | role |
|
||||
| user1 | C1 | student |
|
||||
| user2 | C1 | student |
|
||||
And the following config values are set as admin:
|
||||
| messaging | 1 |
|
||||
| messagingallusers | 1 |
|
||||
And I log in as "user2"
|
||||
And I send "User 2 to User 1 message 1" message to "User 1" user
|
||||
And I send "User 2 to User 1 message 2" message in the message area
|
||||
|
@ -10,6 +10,9 @@ Feature: Manage contacts
|
||||
| user1 | User | 1 | user1@example.com |
|
||||
| user2 | User | 2 | user2@example.com |
|
||||
| user3 | User | 3 | user3@example.com |
|
||||
And the following config values are set as admin:
|
||||
| messaging | 1 |
|
||||
| messagingallusers | 1 |
|
||||
And I log in as "admin"
|
||||
And I set the following administration settings values:
|
||||
| messagingallusers | 1 |
|
||||
|
@ -9,6 +9,9 @@ Feature: Reply message
|
||||
| username | firstname | lastname | email |
|
||||
| user1 | User | 1 | user1@example.com |
|
||||
| user2 | User | 2 | user2@example.com |
|
||||
And the following config values are set as admin:
|
||||
| messaging | 1 |
|
||||
| messagingallusers | 1 |
|
||||
And the following "courses" exist:
|
||||
| fullname | shortname |
|
||||
| Course 1 | C1 |
|
||||
@ -16,6 +19,9 @@ Feature: Reply message
|
||||
| user | course | role |
|
||||
| user1 | C1 | student |
|
||||
| user2 | C1 | student |
|
||||
And the following config values are set as admin:
|
||||
| messaging | 1 |
|
||||
| messagingallusers | 1 |
|
||||
And I log in as "user2"
|
||||
And I send "User 2 to User 1" message to "User 1" user
|
||||
And I log out
|
||||
|
@ -18,6 +18,9 @@ Feature: Search messages
|
||||
| user1 | C1 | student |
|
||||
| user2 | C1 | student |
|
||||
| user3 | C1 | student |
|
||||
And the following config values are set as admin:
|
||||
| messaging | 1 |
|
||||
| messagingallusers | 1 |
|
||||
And I log in as "user2"
|
||||
And I send "User 2 to User 1" message to "User 1" user
|
||||
And I log out
|
||||
|
@ -10,6 +10,9 @@ Feature: Search users
|
||||
| user1 | User | 1 | user1@example.com |
|
||||
| user2 | User | 2 | user2@example.com |
|
||||
| user3 | User | 3 | user3@example.com |
|
||||
And the following config values are set as admin:
|
||||
| messaging | 1 |
|
||||
| messagingallusers | 1 |
|
||||
|
||||
Scenario: Search for single user
|
||||
When I log in as "user1"
|
||||
|
@ -8,6 +8,9 @@ Feature: Messaging preferences
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Plugins > Message outputs > Manage message outputs" in site administration
|
||||
And I click on "//table[contains(@class, 'admintable')]/tbody/tr/td[contains(text(), 'Email')]/following-sibling::td[1]/a" "xpath_element"
|
||||
And the following config values are set as admin:
|
||||
| messaging | 1 |
|
||||
| messagingallusers | 1 |
|
||||
|
||||
Scenario: Alter my message preferences
|
||||
Given I follow "Preferences" in the user menu
|
||||
|
@ -18,6 +18,9 @@ Feature: View messages
|
||||
| user1 | C1 | student |
|
||||
| user2 | C1 | student |
|
||||
| user3 | C1 | student |
|
||||
And the following config values are set as admin:
|
||||
| messaging | 1 |
|
||||
| messagingallusers | 1 |
|
||||
And I log in as "user2"
|
||||
And I send "User 2 to User 1" message to "User 1" user
|
||||
And I log out
|
||||
|
@ -20,6 +20,9 @@ Feature: Deleting users
|
||||
| user2 | C1 | student |
|
||||
| user3 | C1 | student |
|
||||
| user4 | C1 | student |
|
||||
And the following config values are set as admin:
|
||||
| messaging | 1 |
|
||||
| messagingallusers | 1 |
|
||||
|
||||
@javascript
|
||||
Scenario: Deleting one user at a time
|
||||
|
@ -21,6 +21,9 @@ Feature: Access to full profiles of users
|
||||
| student2 | C1 | student |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student3 | C2 | student |
|
||||
And the following config values are set as admin:
|
||||
| messaging | 1 |
|
||||
| messagingallusers | 1 |
|
||||
|
||||
Scenario: Viewing full profiles with default settings
|
||||
When I log in as "student1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user