diff --git a/tests/TestCase.php b/tests/TestCase.php index 36fd62f..ba89821 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -30,7 +30,12 @@ abstract class TestCase extends BaseTestCase // Stub external dependencies not available in test environment if (! class_exists(\Plug\Cdn\CdnManager::class)) { - $app->bind(\Plug\Cdn\CdnManager::class, fn () => new class {}); + $app->bind(\Core\Mod\Content\Services\CdnPurgeService::class, fn () => new class { + public function isEnabled(): bool { return false; } + public function purgeContent($content) { return null; } + public function purgeUrls(array $urls) { return null; } + public function purgeWorkspace(string $uuid) { return null; } + }); } } }