HomeCept.php 315B

8 yıl önce
123456789101112
  1. <?php
  2. use tests\codeception\frontend\FunctionalTester;
  3. /* @var $scenario Codeception\Scenario */
  4. $I = new FunctionalTester($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.');