ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
SettingsQuestionBehaviourTest Class Reference
+ Inheritance diagram for SettingsQuestionBehaviourTest:
+ Collaboration diagram for SettingsQuestionBehaviourTest:

Public Member Functions

 testGetAndWithQuestionTitleOutputMode (int $io)
 
 testGetAndWithAutosaveEnabled (bool $io)
 
 testGetAndWithAutosaveInterval (int $io)
 
 testGetAndWithShuffleQuestions (bool $io)
 
 testGetAndWithInstantFeedbackPointsEnabled (bool $io)
 
 testGetAndWithInstantFeedbackGenericEnabled (bool $io)
 
 testGetAndWithInstantFeedbackSpecificEnabled (bool $io)
 
 testGetAndWithInstantFeedbackSolutionEnabled (bool $io)
 
 testGetAndWithForceInstantFeedbackOnNextQuestion (bool $io)
 
 testGetAndWithLockAnswerOnInstantFeedbackEnabled (bool $io)
 
 testGetAndWithLockAnswerOnNextQuestionEnabled (bool $io)
 
- Public Member Functions inherited from ilTestBaseTestCase
 createInstanceOf (string $class_name, array $explicit_parameters=[])
 
 createTraitInstanceOf (string $class_name, array $explicit_parameters=[])
 

Static Public Member Functions

static getAndWithQuestionTitleOutputModeDataProvider ()
 
static getAndWithInstantFeedbackDataProvider ()
 
static getAndWithAutosaveIntervalDataProvider ()
 
static getAndWithShuffleQuestionsDataProvider ()
 
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=[])
 
static getNonPublicPropertyValue (object $obj, string $name)
 

Private Member Functions

 getTestInstance ()
 

Additional Inherited Members

- Data Fields inherited from ilTestBaseTestCase
const string MOCKED_METHOD_WITHOUT_OUTPUT = 'MOCKED_METHOD_WITHOUT_OUTPUT'
 
const string DYNAMIC_CLASS = 'DynamicClass'
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 
Container $backup_dic = null
 
- Static Protected Attributes inherited from ilTestBaseTestCase
static int $DYNAMIC_CLASS_COUNT = 0
 

Detailed Description

Definition at line 23 of file SettingsQuestionBehaviourTest.php.

Member Function Documentation

◆ getAndWithAutosaveIntervalDataProvider()

static SettingsQuestionBehaviourTest::getAndWithAutosaveIntervalDataProvider ( )
static

Definition at line 89 of file SettingsQuestionBehaviourTest.php.

89  : array
90  {
91  return [
92  [-1],
93  [0],
94  [1]
95  ];
96  }

◆ getAndWithForceInstantFeedbackOnNextQuestionDataProvider()

static SettingsQuestionBehaviourTest::getAndWithForceInstantFeedbackOnNextQuestionDataProvider ( )
static

Definition at line 192 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithInstantFeedbackDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackDataProvider ( )
static

Definition at line 72 of file SettingsQuestionBehaviourTest.php.

72  : array
73  {
74  return [
75  [false],
76  [true]
77  ];
78  }

◆ getAndWithInstantFeedbackGenericEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackGenericEnabledDataProvider ( )
static

Definition at line 141 of file SettingsQuestionBehaviourTest.php.

141  : array
142  {
143  return [
144  [false],
145  [true]
146  ];
147  }

◆ getAndWithInstantFeedbackPointsEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackPointsEnabledDataProvider ( )
static

Definition at line 124 of file SettingsQuestionBehaviourTest.php.

124  : array
125  {
126  return [
127  [false],
128  [true]
129  ];
130  }

◆ getAndWithInstantFeedbackSolutionEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackSolutionEnabledDataProvider ( )
static

Definition at line 175 of file SettingsQuestionBehaviourTest.php.

175  : array
176  {
177  return [
178  [false],
179  [true]
180  ];
181  }

◆ getAndWithInstantFeedbackSpecificEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackSpecificEnabledDataProvider ( )
static

Definition at line 158 of file SettingsQuestionBehaviourTest.php.

158  : array
159  {
160  return [
161  [false],
162  [true]
163  ];
164  }

◆ getAndWithLockAnswerOnInstantFeedbackEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithLockAnswerOnInstantFeedbackEnabledDataProvider ( )
static

Definition at line 209 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithLockAnswerOnNextQuestionEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithLockAnswerOnNextQuestionEnabledDataProvider ( )
static

Definition at line 226 of file SettingsQuestionBehaviourTest.php.

226  : array
227  {
228  return [
229  [false],
230  [true]
231  ];
232  }

◆ getAndWithQuestionTitleOutputModeDataProvider()

static SettingsQuestionBehaviourTest::getAndWithQuestionTitleOutputModeDataProvider ( )
static

Definition at line 54 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithShuffleQuestionsDataProvider()

static SettingsQuestionBehaviourTest::getAndWithShuffleQuestionsDataProvider ( )
static

Definition at line 107 of file SettingsQuestionBehaviourTest.php.

107  : array
108  {
109  return [
110  [false],
111  [true]
112  ];
113  }

◆ getTestInstance()

◆ testGetAndWithAutosaveEnabled()

SettingsQuestionBehaviourTest::testGetAndWithAutosaveEnabled ( bool  $io)

Definition at line 64 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

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

◆ testGetAndWithAutosaveInterval()

SettingsQuestionBehaviourTest::testGetAndWithAutosaveInterval ( int  $io)

Definition at line 81 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

81  : void
82  {
83  $Settings_question_behaviour = $this->getTestInstance()->withAutosaveInterval($io);
84 
85  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
86  $this->assertEquals($io, $Settings_question_behaviour->getAutosaveInterval());
87  }
+ Here is the call graph for this function:

◆ testGetAndWithForceInstantFeedbackOnNextQuestion()

SettingsQuestionBehaviourTest::testGetAndWithForceInstantFeedbackOnNextQuestion ( bool  $io)

Definition at line 184 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

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

◆ testGetAndWithInstantFeedbackGenericEnabled()

SettingsQuestionBehaviourTest::testGetAndWithInstantFeedbackGenericEnabled ( bool  $io)

Definition at line 133 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

133  : void
134  {
135  $Settings_question_behaviour = $this->getTestInstance()->withInstantFeedbackGenericEnabled($io);
136 
137  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
138  $this->assertEquals($io, $Settings_question_behaviour->getInstantFeedbackGenericEnabled());
139  }
+ Here is the call graph for this function:

◆ testGetAndWithInstantFeedbackPointsEnabled()

SettingsQuestionBehaviourTest::testGetAndWithInstantFeedbackPointsEnabled ( bool  $io)

Definition at line 116 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

116  : void
117  {
118  $Settings_question_behaviour = $this->getTestInstance()->withInstantFeedbackPointsEnabled($io);
119 
120  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
121  $this->assertEquals($io, $Settings_question_behaviour->getInstantFeedbackPointsEnabled());
122  }
+ Here is the call graph for this function:

◆ testGetAndWithInstantFeedbackSolutionEnabled()

SettingsQuestionBehaviourTest::testGetAndWithInstantFeedbackSolutionEnabled ( bool  $io)

Definition at line 167 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

167  : void
168  {
169  $Settings_question_behaviour = $this->getTestInstance()->withInstantFeedbackSolutionEnabled($io);
170 
171  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
172  $this->assertEquals($io, $Settings_question_behaviour->getInstantFeedbackSolutionEnabled());
173  }
+ Here is the call graph for this function:

◆ testGetAndWithInstantFeedbackSpecificEnabled()

SettingsQuestionBehaviourTest::testGetAndWithInstantFeedbackSpecificEnabled ( bool  $io)

Definition at line 150 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

150  : void
151  {
152  $Settings_question_behaviour = $this->getTestInstance()->withInstantFeedbackSpecificEnabled($io);
153 
154  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
155  $this->assertEquals($io, $Settings_question_behaviour->getInstantFeedbackSpecificEnabled());
156  }
+ Here is the call graph for this function:

◆ testGetAndWithLockAnswerOnInstantFeedbackEnabled()

SettingsQuestionBehaviourTest::testGetAndWithLockAnswerOnInstantFeedbackEnabled ( bool  $io)

Definition at line 201 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

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

◆ testGetAndWithLockAnswerOnNextQuestionEnabled()

SettingsQuestionBehaviourTest::testGetAndWithLockAnswerOnNextQuestionEnabled ( bool  $io)

Definition at line 218 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

218  : void
219  {
220  $Settings_question_behaviour = $this->getTestInstance()->withLockAnswerOnNextQuestionEnabled($io);
221 
222  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
223  $this->assertEquals($io, $Settings_question_behaviour->getLockAnswerOnNextQuestionEnabled());
224  }
+ Here is the call graph for this function:

◆ testGetAndWithQuestionTitleOutputMode()

SettingsQuestionBehaviourTest::testGetAndWithQuestionTitleOutputMode ( int  $io)

Definition at line 46 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

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

◆ testGetAndWithShuffleQuestions()

SettingsQuestionBehaviourTest::testGetAndWithShuffleQuestions ( bool  $io)

Definition at line 99 of file SettingsQuestionBehaviourTest.php.

References getTestInstance().

99  : void
100  {
101  $Settings_question_behaviour = $this->getTestInstance()->withShuffleQuestions($io);
102 
103  $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
104  $this->assertEquals($io, $Settings_question_behaviour->getShuffleQuestions());
105  }
+ Here is the call graph for this function:

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