fixed functional test.
This commit is contained in:
parent
7d521cb75a
commit
ca8511dd43
@ -13,5 +13,12 @@ require_once(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php');
|
|||||||
|
|
||||||
$config = require(__DIR__ . '/../config/web-test.php');
|
$config = require(__DIR__ . '/../config/web-test.php');
|
||||||
|
|
||||||
|
if (isset($this)) {
|
||||||
|
// run in functional tests
|
||||||
|
$config['class'] = 'yii\web\Application';
|
||||||
|
return $config;
|
||||||
|
} else {
|
||||||
|
// run in acceptance tests
|
||||||
$application = new yii\web\Application($config);
|
$application = new yii\web\Application($config);
|
||||||
$application->run();
|
$application->run();
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user