yii2-test-1/frontend/tests/functional/HomeCest.php

17 lines
345 B
PHP
Raw Normal View History

2023-05-06 20:40:02 +03:00
<?php
namespace frontend\tests\functional;
use frontend\tests\FunctionalTester;
class HomeCest
{
public function checkOpen(FunctionalTester $I)
{
$I->amOnRoute(\Yii::$app->homeUrl);
$I->see('My Application');
$I->seeLink('About');
$I->click('About');
$I->see('This is the About page.');
}
}