ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAssQuestionFeedbackTest.php
Go to the documentation of this file.
1<?php
2
29{
30 protected $backupGlobals = false;
31
33
34 protected function setUp(): void
35 {
36 parent::setUp();
37
38 $questionOBJ = $this->createMock(assQuestion::class);
39 $ctrl = $this->createMock(ilCtrl::class);
40 $db = $this->createMock(ilDBInterface::class);
41 $lng = $this->createMock(ilLanguage::class);
42
43 $this->object = new class ($questionOBJ, $ctrl, $db, $lng) extends ilAssQuestionFeedback {
44 public function getSpecificAnswerFeedbackTestPresentation(int $questionId, int $questionIndex, int $answerIndex): string
45 {
46 return '';
47 }
48
49 public function completeSpecificFormProperties(ilPropertyFormGUI $form): void
50 {
51 }
52
53 public function initSpecificFormProperties(ilPropertyFormGUI $form): void
54 {
55 }
56
57 public function saveSpecificFormProperties(ilPropertyFormGUI $form): void
58 {
59 }
60
61 public function getSpecificAnswerFeedbackContent(int $questionId, int $questionIndex, int $answerIndex): string
62 {
63 return '';
64 }
65
66 public function getAllSpecificAnswerFeedbackContents(int $questionId): string
67 {
68 return '';
69 }
70
71 public function saveSpecificAnswerFeedbackContent(int $questionId, int $questionIndex, int $answerIndex, string $feedbackContent): int
72 {
73 return 0;
74 }
75
76 public function deleteSpecificAnswerFeedbacks(int $questionId, bool $isAdditionalContentEditingModePageObject): void
77 {
78 }
79
80 protected function isSpecificAnswerFeedbackId(int $feedbackId): bool
81 {
82 return true;
83 }
84
85 protected function cloneSpecificFeedback(int $source_question_id, int $target_question_id): void
86 {
87 }
88
89 public function getSpecificAnswerFeedbackExportPresentation(int $questionId, int $questionIndex, int $answerIndex): string
90 {
91 return '';
92 }
93
94 public function importSpecificAnswerFeedback(int $questionId, int $questionIndex, int $answerIndex, string $feedbackContent): void
95 {
96 }
97 };
98 }
99
100 public function testConstruct(): void
101 {
102 $this->assertInstanceOf(ilAssQuestionFeedback::class, $this->object);
103 }
104}
Class assBaseTestCase.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class represents a property form user interface.
global $lng
Definition: privfeed.php:31