Answer the question
In order to leave comments, you need to log in
Is Codeception Functional behavior with Yii2 intended?
I came across an interesting feature of Codeception in functional mode.
It can be described in this way.
First: we have a simple controller
class TestController extends Controller
{
public function actionIndex()
{
return $this->renderPartial('test');
}
}
<?php
function test() { }
public function checkTest(\FunctionalTester $I)
{
$I->amOnRoute('test/index');
$I->amOnRoute('test/index');
//На второй строчке скрипт упадет
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question