test.php 908 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. $params = require(__DIR__ . '/params.php');
  3. $dbParams = require(__DIR__ . '/test_db.php');
  4. /**
  5. * Application configuration shared by all test types
  6. */
  7. return [
  8. 'id' => 'basic-tests',
  9. 'basePath' => dirname(__DIR__),
  10. 'language' => 'en-US',
  11. 'components' => [
  12. 'db' => $dbParams,
  13. 'mailer' => [
  14. 'useFileTransport' => true,
  15. ],
  16. 'urlManager' => [
  17. 'showScriptName' => true,
  18. ],
  19. 'user' => [
  20. 'identityClass' => 'app\models\User',
  21. ],
  22. 'request' => [
  23. 'cookieValidationKey' => 'test',
  24. 'enableCsrfValidation' => false,
  25. // but if you absolutely need it set cookie domain to localhost
  26. /*
  27. 'csrfCookie' => [
  28. 'domain' => 'localhost',
  29. ],
  30. */
  31. ],
  32. ],
  33. 'params' => $params,
  34. ];