Drupal investigation

test.php 1001B

123456789101112131415161718192021222324252627282930313233343536373839
  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. 'language' => 'en-US',
  11. 'components' => [
  12. 'db' => $db,
  13. 'mailer' => [
  14. 'useFileTransport' => true,
  15. ],
  16. 'assetManager' => [
  17. 'basePath' => __DIR__ . '/../web/assets',
  18. ],
  19. 'urlManager' => [
  20. 'showScriptName' => true,
  21. ],
  22. 'user' => [
  23. 'identityClass' => 'app\models\User',
  24. ],
  25. 'request' => [
  26. 'cookieValidationKey' => 'test',
  27. 'enableCsrfValidation' => false,
  28. // but if you absolutely need it set cookie domain to localhost
  29. /*
  30. 'csrfCookie' => [
  31. 'domain' => 'localhost',
  32. ],
  33. */
  34. ],
  35. ],
  36. 'params' => $params,
  37. ];