You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 8 година
123456789101112
  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.');