From ebe6255d7abaeed6f29fb9bf45bad4c556729974 Mon Sep 17 00:00:00 2001 From: Timotheus Pokorra Date: Fri, 18 Aug 2023 12:04:42 +0200 Subject: [PATCH] update Tests with answerMapper Signed-off-by: Timotheus Pokorra --- tests/Unit/Service/FormsServiceTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Unit/Service/FormsServiceTest.php b/tests/Unit/Service/FormsServiceTest.php index bb92a3f54..c3a16a4eb 100644 --- a/tests/Unit/Service/FormsServiceTest.php +++ b/tests/Unit/Service/FormsServiceTest.php @@ -98,6 +98,7 @@ public function setUp(): void { $this->questionMapper = $this->createMock(QuestionMapper::class); $this->shareMapper = $this->createMock(ShareMapper::class); $this->submissionMapper = $this->createMock(SubmissionMapper::class); + $this->answerMapper = $this->createMock(AnswerMapper::class); $this->configService = $this->createMock(ConfigService::class); $this->groupManager = $this->createMock(IGroupManager::class); @@ -121,6 +122,7 @@ public function setUp(): void { $this->questionMapper, $this->shareMapper, $this->submissionMapper, + $this->answerMapper, $this->configService, $this->groupManager, $this->logger, @@ -606,6 +608,7 @@ public function testGetPermissions_NotLoggedIn() { $this->questionMapper, $this->shareMapper, $this->submissionMapper, + $this->answerMapper, $this->configService, $this->groupManager, $this->logger, @@ -800,6 +803,7 @@ public function testPublicCanSubmit() { $this->questionMapper, $this->shareMapper, $this->submissionMapper, + $this->answerMapper, $this->configService, $this->groupManager, $this->logger, @@ -976,6 +980,7 @@ public function testHasUserAccess_NotLoggedIn() { $this->questionMapper, $this->shareMapper, $this->submissionMapper, + $this->answerMapper, $this->configService, $this->groupManager, $this->logger,