You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

8 months ago
  1. <?php
  2. $params = require __DIR__ . '/params.php';
  3. $db = 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. 'aliases' => [
  11. '@bower' => '@vendor/bower-asset',
  12. '@npm' => '@vendor/npm-asset',
  13. ],
  14. 'language' => 'en-US',
  15. 'components' => [
  16. 'db' => $db,
  17. 'mailer' => [
  18. 'class' => \yii\symfonymailer\Mailer::class,
  19. 'viewPath' => '@app/mail',
  20. // send all mails to a file by default.
  21. 'useFileTransport' => true,
  22. 'messageClass' => 'yii\symfonymailer\Message'
  23. ],
  24. 'assetManager' => [
  25. 'basePath' => __DIR__ . '/../web/assets',
  26. ],
  27. 'urlManager' => [
  28. 'showScriptName' => true,
  29. ],
  30. 'user' => [
  31. 'identityClass' => 'app\models\User',
  32. ],
  33. 'request' => [
  34. 'cookieValidationKey' => 'test',
  35. 'enableCsrfValidation' => false,
  36. // but if you absolutely need it set cookie domain to localhost
  37. /*
  38. 'csrfCookie' => [
  39. 'domain' => 'localhost',
  40. ],
  41. */
  42. ],
  43. ],
  44. 'params' => $params,
  45. ];