Code Duplication    Length = 7-7 lines in 2 locations

tests/acceptance/ConfirmEmailsCest.php 2 locations

@@ 9-15 (lines=7) @@
6
7
class ConfirmEmailsCest
8
{
9
    public function ensureIGetAnErrorWhenITryToClientConfirmEmail(AcceptanceTester $I)
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
    public function ensureIGetAnErrorWhenITryToContactConfirmEmail(AcceptanceTester $I)
18
    {
@@ 17-23 (lines=7) @@
14
        $I->see('Failed confirm email. Please start over.', ['css' => '.ui-pnotify-text']);
15
    }
16
17
    public function ensureIGetAnErrorWhenITryToContactConfirmEmail(AcceptanceTester $I)
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