mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-02-16 01:08:42 +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="form-group">
|
||||||
<div class="input-control">
|
<div class="input-control">
|
||||||
<select name="commentlist_status">
|
<select name="commentlist_status">
|
||||||
<option value="<?= CommentListStatus::ACTIVE; ?>"<?= $this->commentList->status === CommentListStatus::ACTIVE ? ' selected' : ''; ?>><?= $this->getHtml('lstatus-' . CommentListStatus::ACTIVE); ?>
|
<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::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::LOCKED; ?>"<?= $this->commentList->status === CommentListStatus::LOCKED ? ' selected' : ''; ?>><?= $this->getHtml(':lstatus-' . CommentListStatus::LOCKED); ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-control">
|
<div class="input-control">
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ return ['Comments' => [
|
||||||
'Comments' => 'Kommentare',
|
'Comments' => 'Kommentare',
|
||||||
'Upload' => 'Hochladen',
|
'Upload' => 'Hochladen',
|
||||||
'Voting' => 'Wählen',
|
'Voting' => 'Wählen',
|
||||||
'lstatus-1' => 'Aktiv',
|
':lstatus-1' => 'Aktiv',
|
||||||
'lstatus-2' => 'Gesperrt',
|
':lstatus-2' => 'Gesperrt',
|
||||||
'lstatus-3' => 'Inaktiv',
|
':lstatus-3' => 'Inaktiv',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ return ['Comments' => [
|
||||||
'Comments' => 'Comments',
|
'Comments' => 'Comments',
|
||||||
'Upload' => 'Upload',
|
'Upload' => 'Upload',
|
||||||
'Voting' => 'Voting',
|
'Voting' => 'Voting',
|
||||||
'lstatus-1' => 'Active',
|
':lstatus-1' => 'Active',
|
||||||
'lstatus-2' => 'Locked',
|
':lstatus-2' => 'Locked',
|
||||||
'lstatus-3' => 'Inactive',
|
':lstatus-3' => 'Inactive',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ final class CommentMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
$comment->title = 'Test Title';
|
$comment->title = 'Test Title';
|
||||||
$comment->content = 'Test Content';
|
$comment->content = 'Test Content';
|
||||||
$comment->ref = null;
|
$comment->ref = null;
|
||||||
$comment->list = new CommentList();
|
$comment->list = 1;
|
||||||
|
|
||||||
$id = CommentMapper::create()->execute($comment);
|
$id = CommentMapper::create()->execute($comment);
|
||||||
self::assertGreaterThan(0, $comment->id);
|
self::assertGreaterThan(0, $comment->id);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user