fix(audit L5): unter der Sperre Divis Laufzeit-Caches verwerfen (Options-Cache-Gruppe, GlobalData-/GlobalPreset-Static, et_theme_options) vor raw() und design_rev
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
6e84138979
commit
99c7aab238
@@ -52,6 +52,7 @@ final class DiviPresetsSetAbilityTest extends TestCase
|
||||
private function savingWriter(): DesignSystemWriter
|
||||
{
|
||||
$writer = Mockery::mock(DesignSystemWriter::class);
|
||||
$writer->allows('refresh');
|
||||
$writer->allows('presets')->andReturnUsing(fn (): array => $this->stored);
|
||||
$writer->allows('canUseVisualBuilder')->andReturn(true);
|
||||
$writer->allows('savePresets')->andReturnUsing(function (array $rest, bool $mayRemove): array {
|
||||
@@ -291,6 +292,7 @@ final class DiviPresetsSetAbilityTest extends TestCase
|
||||
public function testNothingIsWrittenWhenOneItemHasErrors(): void
|
||||
{
|
||||
$writer = Mockery::mock(DesignSystemWriter::class);
|
||||
$writer->allows('refresh');
|
||||
$writer->allows('presets')->andReturnUsing(fn (): array => $this->stored);
|
||||
$writer->allows('canUseVisualBuilder')->andReturn(true);
|
||||
$writer->shouldNotReceive('savePresets');
|
||||
|
||||
Reference in New Issue
Block a user