I have configured i18n in my project. Now i want to test start page with acceptance test. Here is code of my test.
<?php
namespace Tests\Acceptance;
use Tests\Support\AcceptanceTester;
use Yii;
class MainTestCest
{
public function _before(AcceptanceTester $I)
{
}
// tests
public function tryToViewIndex(AcceptanceTester $I)
{
$I->amOnPage('/');
$I->see(Yii::t('app','index'));
}
}
But i have an error during codecept run
class Yii not found. How to obtain Yii class in my acceptance tests?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745153284a4613963.html
评论列表(0条)