Skip to content

Commit

Permalink
Normalize config initialization across autoload tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Nov 14, 2024
1 parent 80f4346 commit 74eb34b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions tests/Autoload/IgnoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
'ddd.layers' => [
'Infrastructure' => 'src/Infrastructure',
],
'ddd.autoload_ignore' => [
'Tests',
'Database/Migrations',
],
'cache.default' => 'file',
]);

$this->setupTestApplication();
Expand Down
6 changes: 5 additions & 1 deletion tests/Autoload/PolicyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
'ddd.layers' => [
'Infrastructure' => 'src/Infrastructure',
],
'ddd.autoload.factories' => true,
'ddd.autoload_ignore' => [
'Tests',
'Database/Migrations',
],
'cache.default' => 'file',
]);

$this->afterApplicationCreated(function () {
Expand Down
10 changes: 9 additions & 1 deletion tests/Autoload/ProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@
Config::set([
'ddd.domain_path' => 'src/Domain',
'ddd.domain_namespace' => 'Domain',
'ddd.application_path' => 'src/Application',
'ddd.application_namespace' => 'Application',
'ddd.application_path' => 'src/Application',
'ddd.application_objects' => [
'controller',
'request',
'middleware',
],
'ddd.layers' => [
'Infrastructure' => 'src/Infrastructure',
],
'ddd.autoload_ignore' => [
'Tests',
'Database/Migrations',
],
'cache.default' => 'file',
]);

$this->setupTestApplication();
Expand Down

0 comments on commit 74eb34b

Please sign in to comment.