test fixes

This commit is contained in:
Dennis Eichhorn 2022-11-25 23:55:35 +01:00
parent 6952d553e1
commit eaf1ae658e
2 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ final class QAAnswerVoteMapperTest extends \PHPUnit\Framework\TestCase
$vote->answer = 1;
$vote->score = 1;
$vote->createdBy = new NullAccount(1);
$vote->createdFor = 2;
$id = QAAnswerVoteMapper::create()->execute($vote);
self::assertGreaterThan(0, $vote->getId());

View File

@ -34,6 +34,7 @@ final class QAQuestionVoteMapperTest extends \PHPUnit\Framework\TestCase
$vote->question = 1;
$vote->score = 1;
$vote->createdBy = new NullAccount(1);
$vote->createdFor = 2;
$id = QAQuestionVoteMapper::create()->execute($vote);
self::assertGreaterThan(0, $vote->getId());