From 1f28fd04631718636075561e1e42e10f04b1e070 Mon Sep 17 00:00:00 2001 From: Kovah Date: Thu, 17 Oct 2024 16:38:09 +0200 Subject: [PATCH] Fix tests for recently changed translations --- tests/Components/History/LinkEntryTest.php | 2 +- tests/Components/History/ListEntryTest.php | 2 +- tests/Components/History/TagEntryTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Components/History/LinkEntryTest.php b/tests/Components/History/LinkEntryTest.php index 589902c0..2bce43b0 100644 --- a/tests/Components/History/LinkEntryTest.php +++ b/tests/Components/History/LinkEntryTest.php @@ -83,7 +83,7 @@ public function testModelDeletion(): void $historyEntries = $link->audits()->get(); $output = (new LinkEntry($historyEntries[0]))->render(); - $this->assertStringContainsString('Link was deleted', $output); + $this->assertStringContainsString('Link was moved to the trash', $output); $output = (new LinkEntry($historyEntries[1]))->render(); $this->assertStringContainsString('Link was restored', $output); diff --git a/tests/Components/History/ListEntryTest.php b/tests/Components/History/ListEntryTest.php index 45be6c3f..8f7833da 100644 --- a/tests/Components/History/ListEntryTest.php +++ b/tests/Components/History/ListEntryTest.php @@ -79,7 +79,7 @@ public function testModelDeletion(): void $historyEntries = $list->audits()->get(); $output = (new ListEntry($historyEntries[0]))->render(); - $this->assertStringContainsString('List was deleted', $output); + $this->assertStringContainsString('List was moved to the trash', $output); $output = (new ListEntry($historyEntries[1]))->render(); $this->assertStringContainsString('List was restored', $output); diff --git a/tests/Components/History/TagEntryTest.php b/tests/Components/History/TagEntryTest.php index ac1d9d8d..7407bee2 100644 --- a/tests/Components/History/TagEntryTest.php +++ b/tests/Components/History/TagEntryTest.php @@ -51,7 +51,7 @@ public function testModelDeletion(): void $historyEntries = $tag->audits()->get(); $output = (new TagEntry($historyEntries[0]))->render(); - $this->assertStringContainsString('Tag was deleted', $output); + $this->assertStringContainsString('Tag was moved to the trash', $output); $output = (new TagEntry($historyEntries[1]))->render(); $this->assertStringContainsString('Tag was restored', $output);