These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace hiam\mrdp\tests\acceptance; |
||
4 | |||
5 | use hiam\mrdp\tests\_support\AcceptanceTester; |
||
6 | |||
7 | class ConfirmEmailsCest |
||
8 | { |
||
9 | View Code Duplication | public function ensureIGetAnErrorWhenITryToClientConfirmEmail(AcceptanceTester $I) |
|
0 ignored issues
–
show
|
|||
10 | { |
||
11 | $I->wantTo('check I get an error when I try to visit the client confirm page without token'); |
||
12 | $I->amOnPage('/registration/client-confirm-email'); |
||
13 | $I->waitForElement('.ui-pnotify-text', 10); |
||
14 | $I->see('Failed confirm email. Please start over.', ['css' => '.ui-pnotify-text']); |
||
15 | } |
||
16 | |||
17 | View Code Duplication | public function ensureIGetAnErrorWhenITryToContactConfirmEmail(AcceptanceTester $I) |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
18 | { |
||
19 | $I->wantTo('check I get an error when I try to visit the contact confirm page without token'); |
||
20 | $I->amOnPage('/registration/contact-confirm-email'); |
||
21 | $I->waitForElement('.ui-pnotify-text', 10); |
||
22 | $I->see('Failed confirm email. Please start over.', ['css' => '.ui-pnotify-text']); |
||
23 | } |
||
24 | } |
||
25 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.