From 062ba943591910bc8c4159eb10c4c3e85b971c32 Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Sun, 17 Nov 2024 10:06:08 -0500 Subject: [PATCH] wip --- tests/Autoload/ProviderTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Autoload/ProviderTest.php b/tests/Autoload/ProviderTest.php index 3ade9dd..33942c2 100644 --- a/tests/Autoload/ProviderTest.php +++ b/tests/Autoload/ProviderTest.php @@ -80,9 +80,13 @@ it('registers the providers', function () { config()->set('ddd.autoload.providers', true); + expect(DomainCache::has('domain-providers'))->toBeFalse(); + $mock = AutoloadManager::partialMock(); $mock->run(); + expect(DomainCache::has('domain-providers'))->toBeFalse(); + expect($mock->getAllLayerPaths())->toEqualCanonicalizing([ Path::normalize(base_path('src/Domain')), Path::normalize(base_path('src/Application')),