From 972011a088b0e807f5b66604a10a0a0425b7589a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 18 May 2024 02:15:38 +0000 Subject: [PATCH] fix tests --- Theme/Backend/Components/Comment/list.tpl.php | 6 +++--- Theme/Backend/Lang/de.lang.php | 6 +++--- Theme/Backend/Lang/en.lang.php | 6 +++--- tests/Models/CommentMapperTest.php | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Theme/Backend/Components/Comment/list.tpl.php b/Theme/Backend/Components/Comment/list.tpl.php index ef24b1a..697ec38 100755 --- a/Theme/Backend/Components/Comment/list.tpl.php +++ b/Theme/Backend/Components/Comment/list.tpl.php @@ -29,9 +29,9 @@ $comments = $this->commentList?->getComments() ?? [];
diff --git a/Theme/Backend/Lang/de.lang.php b/Theme/Backend/Lang/de.lang.php index 12d70f2..61bf4af 100755 --- a/Theme/Backend/Lang/de.lang.php +++ b/Theme/Backend/Lang/de.lang.php @@ -20,7 +20,7 @@ return ['Comments' => [ 'Comments' => 'Kommentare', 'Upload' => 'Hochladen', 'Voting' => 'Wählen', - 'lstatus-1' => 'Aktiv', - 'lstatus-2' => 'Gesperrt', - 'lstatus-3' => 'Inaktiv', + ':lstatus-1' => 'Aktiv', + ':lstatus-2' => 'Gesperrt', + ':lstatus-3' => 'Inaktiv', ]]; diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 3d81ef5..3272fd6 100755 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -20,7 +20,7 @@ return ['Comments' => [ 'Comments' => 'Comments', 'Upload' => 'Upload', 'Voting' => 'Voting', - 'lstatus-1' => 'Active', - 'lstatus-2' => 'Locked', - 'lstatus-3' => 'Inactive', + ':lstatus-1' => 'Active', + ':lstatus-2' => 'Locked', + ':lstatus-3' => 'Inactive', ]]; diff --git a/tests/Models/CommentMapperTest.php b/tests/Models/CommentMapperTest.php index 9255be4..e505625 100755 --- a/tests/Models/CommentMapperTest.php +++ b/tests/Models/CommentMapperTest.php @@ -33,7 +33,7 @@ final class CommentMapperTest extends \PHPUnit\Framework\TestCase $comment->title = 'Test Title'; $comment->content = 'Test Content'; $comment->ref = null; - $comment->list = new CommentList(); + $comment->list = 1; $id = CommentMapper::create()->execute($comment); self::assertGreaterThan(0, $comment->id);