Completed
Pull Request — master (#4)
by Klochok
10:19 queued 08:36
created

ensureIGetErrorsWhenRequiredParamsIsNotPassed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
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\tests\_support\AcceptanceTester;
6
7
class ConfirmEmailCest
8
{
9
    public function ensureIAmGetWrongEmailToConfirmError(AcceptanceTester $I)
10
    {
11
        $I->wantTo('check wrong email to confirm is get error.');
12
        $I->amOnPage('/registration/confirm?' . http_build_query([
13
                'email' => '[email protected]', 'client' => 'test_client', 'id' => 1234567, 'salt' => 'test_salt',
14
                'hash' => 'test_hash', 'what' => 'contactConfirmEmail',
15
            ]));
16
        $I->see('wrong email to confirm');
17
    }
18
19
    public function ensureIGetErrorsWhenRequiredParamsIsNotPassed(AcceptanceTester $I)
20
    {
21
        $I->wantTo('check when url without required params has an validation error.');
22
        $I->amOnPage('/registration/confirm');
23
        $I->see('Id cannot be blank');
24
        $I->see('Client cannot be blank');
25
        $I->see('Email cannot be blank');
26
        $I->see('What cannot be blank');
27
        $I->see('Salt cannot be blank');
28
        $I->see('Hash cannot be blank');
29
    }
30
}
31