Commit a82281a8 by Qiang Xue

fixed functional test when enablePrettyUrl is false.

parent 6eb6e226
...@@ -7,5 +7,11 @@ return [ ...@@ -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',
],
], ],
]; ];
<?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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment