From 98652498c0ba1f7a95f5ec7f0e74bbb315c27404 Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Sat, 9 Nov 2024 12:08:46 -0500 Subject: [PATCH] Try booting test application for factory instantiation test. --- tests/Factory/DomainFactoryTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Factory/DomainFactoryTest.php b/tests/Factory/DomainFactoryTest.php index 7c44d46..26d0f03 100644 --- a/tests/Factory/DomainFactoryTest.php +++ b/tests/Factory/DomainFactoryTest.php @@ -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();