feat: lit/divi-presets-set – Presets anlegen und ändern mit Probelauf und Snapshot
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
341782a34f
commit
b3c3e69a53
@@ -46,4 +46,17 @@ final class PresetDiffTest extends TestCase
|
||||
'action' => 'default_cleared'],
|
||||
], PresetDiff::between($before, $after));
|
||||
}
|
||||
|
||||
public function testSummaryCountsTheActions(): void
|
||||
{
|
||||
self::assertSame(
|
||||
'Presets: 1 angelegt, 1 geändert, 1 gelöscht, Standard 1× gesetzt, 1× entfernt.',
|
||||
PresetDiff::summary([
|
||||
['action' => 'added'], ['action' => 'changed'], ['action' => 'removed'],
|
||||
['action' => 'default_set'], ['action' => 'default_cleared'],
|
||||
])
|
||||
);
|
||||
self::assertSame('Presets: 2 angelegt.', PresetDiff::summary([['action' => 'added'], ['action' => 'added']]));
|
||||
self::assertSame('Presets: keine Änderung.', PresetDiff::summary([]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user