From eaf1ae658e990b7f58d657852f847cb37b911bff Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 25 Nov 2022 23:55:35 +0100 Subject: [PATCH] test fixes --- tests/Models/QAAnswerVoteMapperTest.php | 1 + tests/Models/QAQuestionVoteMapperTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/Models/QAAnswerVoteMapperTest.php b/tests/Models/QAAnswerVoteMapperTest.php index 838ec51..c7c7d53 100755 --- a/tests/Models/QAAnswerVoteMapperTest.php +++ b/tests/Models/QAAnswerVoteMapperTest.php @@ -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()); diff --git a/tests/Models/QAQuestionVoteMapperTest.php b/tests/Models/QAQuestionVoteMapperTest.php index ae482ac..ebc5588 100755 --- a/tests/Models/QAQuestionVoteMapperTest.php +++ b/tests/Models/QAQuestionVoteMapperTest.php @@ -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());