[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_admin 2 Feature: Enable multiple accounts to have the same email address 3 In order to have multiple accounts registerd on the system with the same email address 4 As an admin 5 I need to enable multiple accounts to be registered with the same email address and verify it is applied 6 7 Background: 8 Given I log in as "admin" 9 10 Scenario: Enable registration of multiple accounts with the same email address 11 Given the following config values are set as admin: 12 | allowaccountssameemail | 1 | 13 When I navigate to "Add a new user" node in "Site administration>Users>Accounts" 14 And I set the following fields to these values: 15 | Username | testmultiemailuser1 | 16 | Choose an authentication method | Manual accounts | 17 | New password | test@User1 | 18 | First name | Test | 19 | Surname | Multi1 | 20 | Email address | testmultiemailuser@example.com | 21 And I press "Create user" 22 And I should see "Test Multi1" 23 And I press "Add a new user" 24 And I set the following fields to these values: 25 | Username | testmultiemailuser2 | 26 | Choose an authentication method | Manual accounts | 27 | New password | test@User2 | 28 | First name | Test | 29 | Surname | Multi2 | 30 | Email address | testmultiemailuser@example.com | 31 And I press "Create user" 32 Then I should see "Test Multi2" 33 And I should not see "This email address is already registered" 34 35 Scenario: Disable registration of multiple accounts with the same email address 36 Given the following config values are set as admin: 37 | allowaccountssameemail | 0 | 38 When I navigate to "Add a new user" node in "Site administration>Users>Accounts" 39 And I set the following fields to these values: 40 | Username | testmultiemailuser1 | 41 | Choose an authentication method | Manual accounts | 42 | New password | test@User1 | 43 | First name | Test | 44 | Surname | Multi1 | 45 | Email address | testmultiemailuser@example.com | 46 And I press "Create user" 47 And I should see "Test Multi1" 48 And I press "Add a new user" 49 And I set the following fields to these values: 50 | Username | testmultiemailuser2 | 51 | Choose an authentication method | Manual accounts | 52 | New password | test@User2 | 53 | First name | Test | 54 | Surname | Multi2 | 55 | Email address | testmultiemailuser@example.com | 56 And I press "Create user" 57 Then I should see "This email address is already registered"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |