style: fix Pint violations in TestCase
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f20fd362d4
commit
ddf01c05b5
1 changed files with 21 additions and 5 deletions
|
|
@ -30,11 +30,27 @@ abstract class TestCase extends BaseTestCase
|
|||
|
||||
// Stub external dependencies not available in test environment
|
||||
if (! class_exists(\Plug\Cdn\CdnManager::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; }
|
||||
$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;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue