fixed functional test when enablePrettyUrl is false.
This commit is contained in:
parent
f14d80ec0b
commit
9aafc457dc
@ -7,5 +7,11 @@ return [
|
|||||||
'db' => [
|
'db' => [
|
||||||
'dsn' => 'mysql:host=localhost;dbname=yii2basic_functional',
|
'dsn' => 'mysql:host=localhost;dbname=yii2basic_functional',
|
||||||
],
|
],
|
||||||
|
'request' => [
|
||||||
|
'enableCsrfValidation' => false,
|
||||||
|
],
|
||||||
|
'urlManager' => [
|
||||||
|
'baseUrl' => '/web/index.php',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$config = yii\helpers\ArrayHelper::merge(
|
// create an application instance to support URL creation before running any test
|
||||||
require(__DIR__ . '/../../config/web.php'),
|
Yii::createObject(require(__DIR__ . '/../../web/index-test-functional.php'));
|
||||||
require(__DIR__ . '/../../config/codeception/functional.php')
|
|
||||||
);
|
|
||||||
|
|
||||||
$application = new yii\web\Application($config);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user