Skip to content

Commit

Permalink
[#83] Update DB config
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuapease committed May 8, 2024
1 parent 947fc1e commit c95abe0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/.env.example.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ DB_SERVER=127.0.0.1
DB_PORT=3306
DB_DATABASE=craft_test
DB_USER=root
DB_PASSWORD=
DB_PASSWORD=mysecretpassword
DB_SCHEMA="public"

# Set this to the `entryUrl` param in the `codeception.yml` file.
DEFAULT_SITE_URL="https://test.craftcms.test/index.php"
FROM_EMAIL_NAME="Craft CMS"
FROM_EMAIL_ADDRESS="[email protected]"
FROM_EMAIL_ADDRESS="[email protected]"
7 changes: 6 additions & 1 deletion tests/_craft/config/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
use craft\helpers\App;

return [
'dsn' => App::env('DB_DSN'),
'dsn' => App::env('DB_DSN') ?: null,
'driver' => App::env('DB_DRIVER'),
'server' => App::env('DB_SERVER'),
'port' => App::env('DB_PORT'),
'database' => App::env('DB_DATABASE'),
'user' => App::env('DB_USER'),
'password' => App::env('DB_PASSWORD'),
'schema' => App::env('DB_SCHEMA'),
'tablePrefix' => App::env('DB_TABLE_PREFIX'),
];

0 comments on commit c95abe0

Please sign in to comment.