mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-02-03 11:18:41 +00:00
fix tests
This commit is contained in:
parent
70695e1119
commit
972011a088
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
]];
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
]];
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user