X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/admin/tests/behat
home
/
cbholdings
/
pasukulu
/
admin
/
tests
/
behat
/
📁
..
📄
assign.feature
(4.09 KB)
📄
behat_admin.php
(5.15 KB)
📄
browse_users.feature
(3.05 KB)
📄
check.feature
(2.71 KB)
📄
display_short_names.feature
(858 B)
📄
enable_multiple_accounts_use_same_email.feature
(3.23 KB)
📄
filter_users.feature
(5.53 KB)
📄
filter_users_settings.feature
(9.77 KB)
📄
invalid_allcountrycodes.feature
(1.41 KB)
📄
language_settings.feature
(1.35 KB)
📄
manage_blocks.feature
(3.11 KB)
📄
manage_media.feature
(1.31 KB)
📄
manage_tokens.feature
(3.8 KB)
📄
moodlenet_outbound.feature
(2.5 KB)
📄
outgoing_mail.feature
(1.29 KB)
📄
purge_caches.feature
(1.4 KB)
📄
resetindentation.feature
(6.44 KB)
📄
search_areas.feature
(1.02 KB)
📄
set_admin_settings_value.feature
(895 B)
📄
site_administration.feature
(1.01 KB)
📄
siteadmin_webservice_breadcrumbs.feature
(1.74 KB)
📄
siteadmin_webservice_token_breadcrumbs.feature
(1.21 KB)
📄
task_logs.feature
(3.51 KB)
📄
webservice_users.feature
(1.97 KB)
Editing: enable_multiple_accounts_use_same_email.feature
@core @core_admin @core_user Feature: Allowing multiple accounts to have the same email address In order to manage user accounts As an admin I need to be able to set whether to allow multiple accounts with the same email or not Scenario Outline: Create a user with the same email as an existing user Given the following config values are set as admin: | allowaccountssameemail | <allowsameemail> | And the following "users" exist: | username | firstname | lastname | email | | s1 | John | Doe | s1@example.com | When I log in as "admin" And I navigate to "Users > Accounts > Add a new user" in site administration And I set the following fields to these values: | Username | s2 | | First name | Jane | | Last name | Doe | | Email address | <email> | | New password | test | And I press "Create user" Then I should <expect> "This email address is already registered." Examples: | allowsameemail | email | expect | | 0 | s1@example.com | see | | 0 | S1@EXAMPLE.COM | see | | 1 | s1@example.com | not see | | 1 | S1@EXAMPLE.COM | not see | Scenario Outline: Update a user with the same email as an existing user Given the following config values are set as admin: | allowaccountssameemail | <allowsameemail> | And the following "users" exist: | username | firstname | lastname | email | | s1 | John | Doe | s1@example.com | | s2 | Jane | Doe | s2@example.com | When I am on the "s2" "user > editing" page logged in as "admin" And I set the field "Email address" to "<email>" And I press "Update profile" Then I should <expect> "This email address is already registered." Examples: | allowsameemail | email | expect | | 0 | s1@example.com | see | | 0 | S1@EXAMPLE.COM | see | | 1 | s1@example.com | not see | | 1 | S1@EXAMPLE.COM | not see | | 0 | S2@EXAMPLE.COM | not see | | 1 | S2@EXAMPLE.COM | not see | Scenario Outline: Update own user profile with the same email as an existing user Given the following config values are set as admin: | allowaccountssameemail | <allowsameemail> | And the following "users" exist: | username | firstname | lastname | email | | s1 | John | Doe | s1@example.com | | s2 | Jane | Doe | s2@example.com | When I log in as "s2" And I open my profile in edit mode And I set the field "Email address" to "<email>" And I press "Update profile" Then I should <expect> "This email address is already registered." Examples: | allowsameemail | email | expect | | 0 | s1@example.com | see | | 0 | S1@EXAMPLE.COM | see | | 1 | s1@example.com | not see | | 1 | S1@EXAMPLE.COM | not see | | 0 | S2@EXAMPLE.COM | not see | | 1 | S2@EXAMPLE.COM | not see |
Upload File
Create Folder