Exemple #1
0
<?php

use tests\codeception\frontend\FunctionalTester;
use tests\codeception\frontend\_pages\AboutPage;
/* @var $scenario Codeception\Scenario */
$I = new FunctionalTester($scenario);
$I->wantTo('ensure that about works');
AboutPage::openBy($I);
$I->see('About', 'h1');
 /**
  * Test about page.
  *
  * @param \Codeception\AcceptanceTester $I
  * @param \Codeception\Scenario         $scenario
  */
 public function testAboutPage($I, $scenario)
 {
     $I->wantTo('ensure that about page works');
     AboutPage::openBy($I);
     $I->see('About', 'h1');
 }