From a82281a8f9a16f0a23352b23037e7169561aa8b9 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 27 Dec 2013 00:49:26 -0500 Subject: [PATCH] fixed functional test when enablePrettyUrl is false. --- apps/basic/config/codeception/functional.php | 6 ++++++ apps/basic/tests/functional/_bootstrap.php | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/apps/basic/config/codeception/functional.php b/apps/basic/config/codeception/functional.php index 760dcef..210b97d 100644 --- a/apps/basic/config/codeception/functional.php +++ b/apps/basic/config/codeception/functional.php @@ -7,5 +7,11 @@ return [ 'db' => [ 'dsn' => 'mysql:host=localhost;dbname=yii2basic_functional', ], + 'request' => [ + 'enableCsrfValidation' => false, + ], + 'urlManager' => [ + 'baseUrl' => '/web/index.php', + ], ], ]; diff --git a/apps/basic/tests/functional/_bootstrap.php b/apps/basic/tests/functional/_bootstrap.php index 6a117fd..6692104 100644 --- a/apps/basic/tests/functional/_bootstrap.php +++ b/apps/basic/tests/functional/_bootstrap.php @@ -1,8 +1,4 @@