functional.php 641 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Application configuration for functional tests
  4. */
  5. return yii\helpers\ArrayHelper::merge(
  6. require(__DIR__ . '/../../config/web.php'),
  7. require(__DIR__ . '/config.php'),
  8. [
  9. 'components' => [
  10. 'request' => [
  11. // it's not recommended to run functional tests with CSRF validation enabled
  12. 'enableCsrfValidation' => false,
  13. // but if you absolutely need it set cookie domain to localhost
  14. /*
  15. 'csrfCookie' => [
  16. 'domain' => 'localhost',
  17. ],
  18. */
  19. ],
  20. ],
  21. ]
  22. );