13 lines
315B

  1. <?php
  2. use tests\codeception\frontend\AcceptanceTester;
  3. /* @var $scenario Codeception\Scenario */
  4. $I = new AcceptanceTester($scenario);
  5. $I->wantTo('ensure that home page works');
  6. $I->amOnPage(Yii::$app->homeUrl);
  7. $I->see('My Company');
  8. $I->seeLink('About');
  9. $I->click('About');
  10. $I->see('This is the About page.');