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

HomeCest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
dl 0
loc 12
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A checkOpen() 0 7 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