1
0

HomeCest.php 344 B

1234567891011121314151617
  1. <?php
  2. namespace frontend\tests\functional;
  3. use frontend\tests\FunctionalTester;
  4. class HomeCest
  5. {
  6. public function checkOpen(FunctionalTester $I)
  7. {
  8. $I->amOnPage(\Yii::$app->homeUrl);
  9. $I->see('My Application');
  10. $I->seeLink('About');
  11. $I->click('About');
  12. $I->see('This is the About page.');
  13. }
  14. }