ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
SettingsQuestionBehaviourTest Class Reference
+ Inheritance diagram for SettingsQuestionBehaviourTest:
+ Collaboration diagram for SettingsQuestionBehaviourTest:

Public Member Functions

 testGetAndWithQuestionTitleOutputMode (int $io)
 getAndWithQuestionTitleOutputModeDataProvider More...
 
 testGetAndWithAutosaveEnabled (bool $io)
 getAndWithInstantFeedbackDataProvider More...
 
 testGetAndWithAutosaveInterval (int $io)
 getAndWithAutosaveIntervalDataProvider More...
 
 testGetAndWithShuffleQuestions (bool $io)
 getAndWithShuffleQuestionsDataProvider More...
 
 testGetAndWithQuestionHintsEnabled (bool $io)
 getAndWithQuestionHintsEnabledDataProvider More...
 
 testGetAndWithInstantFeedbackPointsEnabled (bool $io)
 getAndWithInstantFeedbackPointsEnabledDataProvider More...
 
 testGetAndWithInstantFeedbackGenericEnabled (bool $io)
 getAndWithInstantFeedbackGenericEnabledDataProvider More...
 
 testGetAndWithInstantFeedbackSpecificEnabled (bool $io)
 getAndWithInstantFeedbackSpecificEnabledDataProvider More...
 
 testGetAndWithInstantFeedbackSolutionEnabled (bool $io)
 getAndWithInstantFeedbackSolutionEnabledDataProvider More...
 
 testGetAndWithForceInstantFeedbackOnNextQuestion (bool $io)
 getAndWithForceInstantFeedbackOnNextQuestionDataProvider More...
 
 testGetAndWithLockAnswerOnInstantFeedbackEnabled (bool $io)
 getAndWithLockAnswerOnInstantFeedbackEnabledDataProvider More...
 
 testGetAndWithLockAnswerOnNextQuestionEnabled (bool $io)
 getAndWithLockAnswerOnNextQuestionEnabledDataProvider More...
 

Static Public Member Functions

static getAndWithQuestionTitleOutputModeDataProvider ()
 
static getAndWithInstantFeedbackDataProvider ()
 
static getAndWithAutosaveIntervalDataProvider ()
 
static getAndWithShuffleQuestionsDataProvider ()
 
static getAndWithQuestionHintsEnabledDataProvider ()
 
static getAndWithInstantFeedbackPointsEnabledDataProvider ()
 
static getAndWithInstantFeedbackGenericEnabledDataProvider ()
 
static getAndWithInstantFeedbackSpecificEnabledDataProvider ()
 
static getAndWithInstantFeedbackSolutionEnabledDataProvider ()
 
static getAndWithForceInstantFeedbackOnNextQuestionDataProvider ()
 
static getAndWithLockAnswerOnInstantFeedbackEnabledDataProvider ()
 
static getAndWithLockAnswerOnNextQuestionEnabledDataProvider ()
 
- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 

Private Member Functions

 getTestInstance ()
 

Additional Inherited Members

- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Definition at line 23 of file SettingsQuestionBehaviourTest.php.

Member Function Documentation

◆ getAndWithAutosaveIntervalDataProvider()

static SettingsQuestionBehaviourTest::getAndWithAutosaveIntervalDataProvider ( )
static

Definition at line 95 of file SettingsQuestionBehaviourTest.php.

95  : array
96  {
97  return [
98  [-1],
99  [0],
100  [1]
101  ];
102  }

◆ getAndWithForceInstantFeedbackOnNextQuestionDataProvider()

static SettingsQuestionBehaviourTest::getAndWithForceInstantFeedbackOnNextQuestionDataProvider ( )
static

Definition at line 229 of file SettingsQuestionBehaviourTest.php.

229  : array
230  {
231  return [
232  [false],
233  [true]
234  ];
235  }

◆ getAndWithInstantFeedbackDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackDataProvider ( )
static

Definition at line 76 of file SettingsQuestionBehaviourTest.php.

76  : array
77  {
78  return [
79  [false],
80  [true]
81  ];
82  }

◆ getAndWithInstantFeedbackGenericEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackGenericEnabledDataProvider ( )
static

Definition at line 172 of file SettingsQuestionBehaviourTest.php.

172  : array
173  {
174  return [
175  [false],
176  [true]
177  ];
178  }

◆ getAndWithInstantFeedbackPointsEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackPointsEnabledDataProvider ( )
static

Definition at line 153 of file SettingsQuestionBehaviourTest.php.

153  : array
154  {
155  return [
156  [false],
157  [true]
158  ];
159  }

◆ getAndWithInstantFeedbackSolutionEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackSolutionEnabledDataProvider ( )
static

Definition at line 210 of file SettingsQuestionBehaviourTest.php.

210  : array
211  {
212  return [
213  [false],
214  [true]
215  ];
216  }

◆ getAndWithInstantFeedbackSpecificEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackSpecificEnabledDataProvider ( )
static

Definition at line 191 of file SettingsQuestionBehaviourTest.php.

191  : array
192  {
193  return [
194  [false],
195  [true]
196  ];
197  }

◆ getAndWithLockAnswerOnInstantFeedbackEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithLockAnswerOnInstantFeedbackEnabledDataProvider ( )
static

Definition at line 248 of file SettingsQuestionBehaviourTest.php.

248  : array
249  {
250  return [
251  [false],
252  [true]
253  ];
254  }

◆ getAndWithLockAnswerOnNextQuestionEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithLockAnswerOnNextQuestionEnabledDataProvider ( )
static

Definition at line 267 of file SettingsQuestionBehaviourTest.php.

267  : array
268  {
269  return [
270  [false],
271  [true]
272  ];
273  }

◆ getAndWithQuestionHintsEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithQuestionHintsEnabledDataProvider ( )
static

Definition at line 134 of file SettingsQuestionBehaviourTest.php.

134  : array
135  {
136  return [
137  [false],
138  [true]
139  ];
140  }

◆ getAndWithQuestionTitleOutputModeDataProvider()

static SettingsQuestionBehaviourTest::getAndWithQuestionTitleOutputModeDataProvider ( )
static

Definition at line 56 of file SettingsQuestionBehaviourTest.php.

56  : array
57  {
58  return [
59  [-1],
60  [0],
61  [1]
62  ];
63  }

◆ getAndWithShuffleQuestionsDataProvider()

static SettingsQuestionBehaviourTest::getAndWithShuffleQuestionsDataProvider ( )
static

Definition at line 115 of file SettingsQuestionBehaviourTest.php.

115  : array
116  {
117  return [
118  [false],
119  [true]
120  ];
121  }

◆ getTestInstance()

◆ testGetAndWithAutosaveEnabled()

SettingsQuestionBehaviourTest::testGetAndWithAutosaveEnabled ( bool  $io)

getAndWithInstantFeedbackDataProvider

Definition at line 68 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

68  : void
69  {
70  $Settings_question_behaviour = $this->getTestInstance()->withAutosaveEnabled($io);
71 
72  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
73  $this->assertEquals($io, $Settings_question_behaviour->getAutosaveEnabled());
74  }
+ Here is the call graph for this function:

◆ testGetAndWithAutosaveInterval()

SettingsQuestionBehaviourTest::testGetAndWithAutosaveInterval ( int  $io)

getAndWithAutosaveIntervalDataProvider

Definition at line 87 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

87  : void
88  {
89  $Settings_question_behaviour = $this->getTestInstance()->withAutosaveInterval($io);
90 
91  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
92  $this->assertEquals($io, $Settings_question_behaviour->getAutosaveInterval());
93  }
+ Here is the call graph for this function:

◆ testGetAndWithForceInstantFeedbackOnNextQuestion()

SettingsQuestionBehaviourTest::testGetAndWithForceInstantFeedbackOnNextQuestion ( bool  $io)

getAndWithForceInstantFeedbackOnNextQuestionDataProvider

Definition at line 221 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

221  : void
222  {
223  $Settings_question_behaviour = $this->getTestInstance()->withForceInstantFeedbackOnNextQuestion($io);
224 
225  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
226  $this->assertEquals($io, $Settings_question_behaviour->getForceInstantFeedbackOnNextQuestion());
227  }
+ Here is the call graph for this function:

◆ testGetAndWithInstantFeedbackGenericEnabled()

SettingsQuestionBehaviourTest::testGetAndWithInstantFeedbackGenericEnabled ( bool  $io)

getAndWithInstantFeedbackGenericEnabledDataProvider

Definition at line 164 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

164  : void
165  {
166  $Settings_question_behaviour = $this->getTestInstance()->withInstantFeedbackGenericEnabled($io);
167 
168  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
169  $this->assertEquals($io, $Settings_question_behaviour->getInstantFeedbackGenericEnabled());
170  }
+ Here is the call graph for this function:

◆ testGetAndWithInstantFeedbackPointsEnabled()

SettingsQuestionBehaviourTest::testGetAndWithInstantFeedbackPointsEnabled ( bool  $io)

getAndWithInstantFeedbackPointsEnabledDataProvider

Definition at line 145 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

145  : void
146  {
147  $Settings_question_behaviour = $this->getTestInstance()->withInstantFeedbackPointsEnabled($io);
148 
149  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
150  $this->assertEquals($io, $Settings_question_behaviour->getInstantFeedbackPointsEnabled());
151  }
+ Here is the call graph for this function:

◆ testGetAndWithInstantFeedbackSolutionEnabled()

SettingsQuestionBehaviourTest::testGetAndWithInstantFeedbackSolutionEnabled ( bool  $io)

getAndWithInstantFeedbackSolutionEnabledDataProvider

Definition at line 202 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

202  : void
203  {
204  $Settings_question_behaviour = $this->getTestInstance()->withInstantFeedbackSolutionEnabled($io);
205 
206  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
207  $this->assertEquals($io, $Settings_question_behaviour->getInstantFeedbackSolutionEnabled());
208  }
+ Here is the call graph for this function:

◆ testGetAndWithInstantFeedbackSpecificEnabled()

SettingsQuestionBehaviourTest::testGetAndWithInstantFeedbackSpecificEnabled ( bool  $io)

getAndWithInstantFeedbackSpecificEnabledDataProvider

Definition at line 183 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

183  : void
184  {
185  $Settings_question_behaviour = $this->getTestInstance()->withInstantFeedbackSpecificEnabled($io);
186 
187  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
188  $this->assertEquals($io, $Settings_question_behaviour->getInstantFeedbackSpecificEnabled());
189  }
+ Here is the call graph for this function:

◆ testGetAndWithLockAnswerOnInstantFeedbackEnabled()

SettingsQuestionBehaviourTest::testGetAndWithLockAnswerOnInstantFeedbackEnabled ( bool  $io)

getAndWithLockAnswerOnInstantFeedbackEnabledDataProvider

Definition at line 240 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

240  : void
241  {
242  $Settings_question_behaviour = $this->getTestInstance()->withLockAnswerOnInstantFeedbackEnabled($io);
243 
244  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
245  $this->assertEquals($io, $Settings_question_behaviour->getLockAnswerOnInstantFeedbackEnabled());
246  }
+ Here is the call graph for this function:

◆ testGetAndWithLockAnswerOnNextQuestionEnabled()

SettingsQuestionBehaviourTest::testGetAndWithLockAnswerOnNextQuestionEnabled ( bool  $io)

getAndWithLockAnswerOnNextQuestionEnabledDataProvider

Definition at line 259 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

259  : void
260  {
261  $Settings_question_behaviour = $this->getTestInstance()->withLockAnswerOnNextQuestionEnabled($io);
262 
263  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
264  $this->assertEquals($io, $Settings_question_behaviour->getLockAnswerOnNextQuestionEnabled());
265  }
+ Here is the call graph for this function:

◆ testGetAndWithQuestionHintsEnabled()

SettingsQuestionBehaviourTest::testGetAndWithQuestionHintsEnabled ( bool  $io)

getAndWithQuestionHintsEnabledDataProvider

Definition at line 126 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

126  : void
127  {
128  $Settings_question_behaviour = $this->getTestInstance()->withQuestionHintsEnabled($io);
129 
130  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
131  $this->assertEquals($io, $Settings_question_behaviour->getQuestionHintsEnabled());
132  }
+ Here is the call graph for this function:

◆ testGetAndWithQuestionTitleOutputMode()

SettingsQuestionBehaviourTest::testGetAndWithQuestionTitleOutputMode ( int  $io)

getAndWithQuestionTitleOutputModeDataProvider

Definition at line 48 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

48  : void
49  {
50  $Settings_question_behaviour = $this->getTestInstance()->withQuestionTitleOutputMode($io);
51 
52  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
53  $this->assertEquals($io, $Settings_question_behaviour->getQuestionTitleOutputMode());
54  }
+ Here is the call graph for this function:

◆ testGetAndWithShuffleQuestions()

SettingsQuestionBehaviourTest::testGetAndWithShuffleQuestions ( bool  $io)

getAndWithShuffleQuestionsDataProvider

Definition at line 107 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

107  : void
108  {
109  $Settings_question_behaviour = $this->getTestInstance()->withShuffleQuestions($io);
110 
111  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
112  $this->assertEquals($io, $Settings_question_behaviour->getShuffleQuestions());
113  }
+ Here is the call graph for this function:

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