test: fix the P9/P14 backup wording of every VisibleEdits caller (ruling Q17 M3)
VisibleEditsTest asserts the exact refusal messages (no unfiltered_html, trash disabled) and the keepingBackup() hints for rolled-back and partial failures with each caller's label and entry. The callers' own tests drive GlobalEdits, ThemeBuilderEdits (through DiviWriter) and make-global with revisions off and assert the same sentences. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
@@ -146,8 +146,10 @@ final class DiviWriterThemeBuilderTest extends TestCase
|
||||
|
||||
self::assertSame(1, $backups);
|
||||
self::assertSame(1071, $error->get_error_data()['backup_id']);
|
||||
self::assertStringContainsString('Sicherung 1071 liegt im Papierkorb', $error->get_error_data()['hint']);
|
||||
self::assertStringContainsString('Theme-Builder-Layouts', $error->get_error_data()['hint']);
|
||||
self::assertSame(
|
||||
VisibleEditsTest::keptRolledBack(1071, 'des Theme-Builder-Layouts'),
|
||||
$error->get_error_data()['hint']
|
||||
);
|
||||
self::assertSame([], $this->saved);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user