Completed
Push — master ( b7c60d...6b701b )
by Dmitry
02:55 queued 25s
created

ensureIGetAnErrorWhenITryToContactConfirmEmail()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 7
Ratio 100 %

Importance

Changes 0
Metric Value
dl 7
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
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
Duplication introduced by
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...
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
Duplication introduced by
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