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')),