Skip to content

Commit

Permalink
[#83] Unit tests are working. Functional is not getting picked up.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuapease committed May 8, 2024
1 parent eb928ad commit b151f3f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .ddev/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ nfs_mount_enabled: false
mutagen_enabled: false
use_dns_when_possible: true
composer_version: "2"
web_environment: []
web_environment:
- DB_DSN=mysql:host=db;port=3306;dbname=db
- DB_USER=db
- DB_PASSWORD=db
nodejs_version: "20"

# Key features of ddev's config.yaml:
Expand Down
11 changes: 6 additions & 5 deletions tests/_craft/config/db.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php

use craft\helpers\App;

return [
'dsn' => getenv('DB_DSN'),
'user' => getenv('DB_USER'),
'password' => getenv('DB_PASSWORD'),
'schema' => getenv('DB_SCHEMA'),
'tablePrefix' => getenv('DB_TABLE_PREFIX'),
'dsn' => App::env('DB_DSN'),
'user' => App::env('DB_USER'),
'password' => App::env('DB_PASSWORD'),
'schema' => App::env('DB_SCHEMA'),
];
1 change: 1 addition & 0 deletions tests/_craft/config/general.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

return [
'securityKey' => 'asdfghjkl',
'usePathInfo' => true,
'omitScriptNameInUrls' => true,
];

0 comments on commit b151f3f

Please sign in to comment.