Skip to content

Commit

Permalink
Try booting test application for factory instantiation test.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed Nov 9, 2024
1 parent 6640fba commit 9865249
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Factory/DomainFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
]);

it('can instantiate a domain model factory', function ($domainParameter, $modelName, $modelClass) {
$this->setupTestApplication();

Config::set('ddd.base_model', 'Lunarstorm\LaravelDDD\Models\DomainModel');
Artisan::call("ddd:model -f {$domainParameter}:{$modelName}");
expect(class_exists($modelClass))->toBeTrue();
Expand Down

0 comments on commit 9865249

Please sign in to comment.