Completed
Push — master ( 20b8ce...b87dd6 )
by Alexey
05:19
created

HomeCest::checkOpen()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
1
<?php
2
3
namespace frontend\tests\functional;
4
5
use frontend\tests\FunctionalTester;
6
7
/**
8
 * Class HomeCest
9
 * @package frontend\tests\functional
10
 */
11
class HomeCest
12
{
13
    /**
14
     * @param FunctionalTester $I
15
     */
16
    public function checkOpen(FunctionalTester $I)
17
    {
18
        $I->amOnPage(\Yii::$app->homeUrl);
19
        $I->see('Yii2-advanced-start');
20
        $I->seeLink('About');
21
        $I->click('About');
22
        $I->see('This is the About page.');
23
    }
24
}
25