mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-02-17 16:28:41 +00:00
test fixes
This commit is contained in:
parent
6952d553e1
commit
eaf1ae658e
|
|
@ -34,6 +34,7 @@ final class QAAnswerVoteMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
$vote->answer = 1;
|
$vote->answer = 1;
|
||||||
$vote->score = 1;
|
$vote->score = 1;
|
||||||
$vote->createdBy = new NullAccount(1);
|
$vote->createdBy = new NullAccount(1);
|
||||||
|
$vote->createdFor = 2;
|
||||||
|
|
||||||
$id = QAAnswerVoteMapper::create()->execute($vote);
|
$id = QAAnswerVoteMapper::create()->execute($vote);
|
||||||
self::assertGreaterThan(0, $vote->getId());
|
self::assertGreaterThan(0, $vote->getId());
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ final class QAQuestionVoteMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
$vote->question = 1;
|
$vote->question = 1;
|
||||||
$vote->score = 1;
|
$vote->score = 1;
|
||||||
$vote->createdBy = new NullAccount(1);
|
$vote->createdBy = new NullAccount(1);
|
||||||
|
$vote->createdFor = 2;
|
||||||
|
|
||||||
$id = QAQuestionVoteMapper::create()->execute($vote);
|
$id = QAQuestionVoteMapper::create()->execute($vote);
|
||||||
self::assertGreaterThan(0, $vote->getId());
|
self::assertGreaterThan(0, $vote->getId());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user