yii2 - Codeception acceptance tests with i18n - Stack Overflow

I have configured i18n in my project. Now i want to test start page with acceptance test. Here is code

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

相关推荐

  • yii2 - Codeception acceptance tests with i18n - Stack Overflow

    I have configured i18n in my project. Now i want to test start page with acceptance test. Here is code

    2小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信