fixed functional test when enablePrettyUrl is false.

This commit is contained in:
Qiang Xue 2013-12-27 00:49:26 -05:00
parent f14d80ec0b
commit 9aafc457dc
2 changed files with 8 additions and 6 deletions

View File

@ -7,5 +7,11 @@ return [
'db' => [
'dsn' => 'mysql:host=localhost;dbname=yii2basic_functional',
],
'request' => [
'enableCsrfValidation' => false,
],
'urlManager' => [
'baseUrl' => '/web/index.php',
],
],
];

View File

@ -1,8 +1,4 @@
<?php
$config = yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/../../config/web.php'),
require(__DIR__ . '/../../config/codeception/functional.php')
);
$application = new yii\web\Application($config);
// create an application instance to support URL creation before running any test
Yii::createObject(require(__DIR__ . '/../../web/index-test-functional.php'));