From 9aafc457dce044196d2b101d0946189007e0d0a4 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. --- config/codeception/functional.php | 6 ++++++ tests/functional/_bootstrap.php | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/config/codeception/functional.php b/config/codeception/functional.php index 760dcef..210b97d 100644 --- a/config/codeception/functional.php +++ b/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/tests/functional/_bootstrap.php b/tests/functional/_bootstrap.php index 6a117fd..6692104 100644 --- a/tests/functional/_bootstrap.php +++ b/tests/functional/_bootstrap.php @@ -1,8 +1,4 @@