fix tests
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled

This commit is contained in:
Dennis Eichhorn 2024-05-18 02:15:38 +00:00
parent 70695e1119
commit 972011a088
4 changed files with 10 additions and 10 deletions

View File

@ -29,9 +29,9 @@ $comments = $this->commentList?->getComments() ?? [];
<div class="form-group">
<div class="input-control">
<select name="commentlist_status">
<option value="<?= CommentListStatus::ACTIVE; ?>"<?= $this->commentList->status === CommentListStatus::ACTIVE ? ' selected' : ''; ?>><?= $this->getHtml('lstatus-' . CommentListStatus::ACTIVE); ?>
<option value="<?= CommentListStatus::INACTIVE; ?>"<?= $this->commentList->status === CommentListStatus::INACTIVE ? ' selected' : ''; ?>><?= $this->getHtml('lstatus-' . CommentListStatus::INACTIVE); ?>
<option value="<?= CommentListStatus::LOCKED; ?>"<?= $this->commentList->status === CommentListStatus::LOCKED ? ' selected' : ''; ?>><?= $this->getHtml('lstatus-' . CommentListStatus::LOCKED); ?>
<option value="<?= CommentListStatus::ACTIVE; ?>"<?= $this->commentList->status === CommentListStatus::ACTIVE ? ' selected' : ''; ?>><?= $this->getHtml(':lstatus-' . CommentListStatus::ACTIVE); ?>
<option value="<?= CommentListStatus::INACTIVE; ?>"<?= $this->commentList->status === CommentListStatus::INACTIVE ? ' selected' : ''; ?>><?= $this->getHtml(':lstatus-' . CommentListStatus::INACTIVE); ?>
<option value="<?= CommentListStatus::LOCKED; ?>"<?= $this->commentList->status === CommentListStatus::LOCKED ? ' selected' : ''; ?>><?= $this->getHtml(':lstatus-' . CommentListStatus::LOCKED); ?>
</select>
</div>
<div class="input-control">

View File

@ -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',
]];

View File

@ -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',
]];

View File

@ -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);