PHP Classes

File: tests/codeception/functional/HomeCept.php

Recommend this page to a friend!
  Classes of Uldis Nelsons   YII2 Framework PHP Init   tests/codeception/functional/HomeCept.php   Download  
File: tests/codeception/functional/HomeCept.php
Role: Example script
Content type: text/plain
Description: Example script
Class: YII2 Framework PHP Init
Create a project based on the YII2 from template
Author: By
Last change:
Date: 2 years ago
Size: 266 bytes
 

Contents

Class file image Download
<?php

/* @var $scenario Codeception\Scenario */

$I = new FunctionalTester($scenario);
$I->wantTo('ensure that home page works');
$I->amOnPage(Yii::$app->homeUrl);
$I->see('My Company');
$I->seeLink('About');
$I->click('About');
$I->see('This is the About page.');