ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAssQuestionFeedbackTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilAssQuestionFeedbackTest:
+ Collaboration diagram for ilAssQuestionFeedbackTest:

Public Member Functions

 testConstruct ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from assBaseTestCase
 setUp ()
 
 tearDown ()
 
 getIRSSMock ()
 

Protected Attributes

 $backupGlobals = false
 
- Protected Attributes inherited from assBaseTestCase
Container $dic = null
 

Private Attributes

ilAssQuestionFeedback $object
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Unit tests

Author
Matheus Zych mzych.nosp@m.@dat.nosp@m.abay..nosp@m.de

\

This test was automatically generated.

Definition at line 28 of file ilAssQuestionFeedbackTest.php.

Member Function Documentation

◆ setUp()

ilAssQuestionFeedbackTest::setUp ( )
protected

Definition at line 34 of file ilAssQuestionFeedbackTest.php.

References $lng.

34  : 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  }
global $lng
Definition: privfeed.php:31

◆ testConstruct()

ilAssQuestionFeedbackTest::testConstruct ( )

Definition at line 100 of file ilAssQuestionFeedbackTest.php.

100  : void
101  {
102  $this->assertInstanceOf(ilAssQuestionFeedback::class, $this->object);
103  }

Field Documentation

◆ $backupGlobals

ilAssQuestionFeedbackTest::$backupGlobals = false
protected

Definition at line 30 of file ilAssQuestionFeedbackTest.php.

◆ $object

ilAssQuestionFeedback ilAssQuestionFeedbackTest::$object
private

Definition at line 32 of file ilAssQuestionFeedbackTest.php.


The documentation for this class was generated from the following file: