ILIAS  trunk Revision v12.0_alpha-399-g579a087ced2
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 88 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithForceInstantFeedbackOnNextQuestionDataProvider()

static SettingsQuestionBehaviourTest::getAndWithForceInstantFeedbackOnNextQuestionDataProvider ( )
static

Definition at line 191 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithInstantFeedbackDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackDataProvider ( )
static

Definition at line 71 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithInstantFeedbackGenericEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackGenericEnabledDataProvider ( )
static

Definition at line 140 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithInstantFeedbackPointsEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackPointsEnabledDataProvider ( )
static

Definition at line 123 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithInstantFeedbackSolutionEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackSolutionEnabledDataProvider ( )
static

Definition at line 174 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithInstantFeedbackSpecificEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithInstantFeedbackSpecificEnabledDataProvider ( )
static

Definition at line 157 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithLockAnswerOnInstantFeedbackEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithLockAnswerOnInstantFeedbackEnabledDataProvider ( )
static

Definition at line 208 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithLockAnswerOnNextQuestionEnabledDataProvider()

static SettingsQuestionBehaviourTest::getAndWithLockAnswerOnNextQuestionEnabledDataProvider ( )
static

Definition at line 225 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithQuestionTitleOutputModeDataProvider()

static SettingsQuestionBehaviourTest::getAndWithQuestionTitleOutputModeDataProvider ( )
static

Definition at line 53 of file SettingsQuestionBehaviourTest.php.

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

◆ getAndWithShuffleQuestionsDataProvider()

static SettingsQuestionBehaviourTest::getAndWithShuffleQuestionsDataProvider ( )
static

Definition at line 106 of file SettingsQuestionBehaviourTest.php.

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

◆ getTestInstance()

◆ testGetAndWithAutosaveEnabled()

SettingsQuestionBehaviourTest::testGetAndWithAutosaveEnabled ( bool  $io)

Definition at line 63 of file SettingsQuestionBehaviourTest.php.

63 : void
64 {
65 $Settings_question_behaviour = $this->getTestInstance()->withAutosaveEnabled($io);
66
67 $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
68 $this->assertEquals($io, $Settings_question_behaviour->getAutosaveEnabled());
69 }

References getTestInstance().

+ Here is the call graph for this function:

◆ testGetAndWithAutosaveInterval()

SettingsQuestionBehaviourTest::testGetAndWithAutosaveInterval ( int  $io)

Definition at line 80 of file SettingsQuestionBehaviourTest.php.

80 : void
81 {
82 $Settings_question_behaviour = $this->getTestInstance()->withAutosaveInterval($io);
83
84 $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
85 $this->assertEquals($io, $Settings_question_behaviour->getAutosaveInterval());
86 }

References getTestInstance().

+ Here is the call graph for this function:

◆ testGetAndWithForceInstantFeedbackOnNextQuestion()

SettingsQuestionBehaviourTest::testGetAndWithForceInstantFeedbackOnNextQuestion ( bool  $io)

Definition at line 183 of file SettingsQuestionBehaviourTest.php.

183 : void
184 {
185 $Settings_question_behaviour = $this->getTestInstance()->withForceInstantFeedbackOnNextQuestion($io);
186
187 $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
188 $this->assertEquals($io, $Settings_question_behaviour->getForceInstantFeedbackOnNextQuestion());
189 }

References getTestInstance().

+ Here is the call graph for this function:

◆ testGetAndWithInstantFeedbackGenericEnabled()

SettingsQuestionBehaviourTest::testGetAndWithInstantFeedbackGenericEnabled ( bool  $io)

Definition at line 132 of file SettingsQuestionBehaviourTest.php.

132 : void
133 {
134 $Settings_question_behaviour = $this->getTestInstance()->withInstantFeedbackGenericEnabled($io);
135
136 $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
137 $this->assertEquals($io, $Settings_question_behaviour->getInstantFeedbackGenericEnabled());
138 }

References getTestInstance().

+ Here is the call graph for this function:

◆ testGetAndWithInstantFeedbackPointsEnabled()

SettingsQuestionBehaviourTest::testGetAndWithInstantFeedbackPointsEnabled ( bool  $io)

Definition at line 115 of file SettingsQuestionBehaviourTest.php.

115 : void
116 {
117 $Settings_question_behaviour = $this->getTestInstance()->withInstantFeedbackPointsEnabled($io);
118
119 $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
120 $this->assertEquals($io, $Settings_question_behaviour->getInstantFeedbackPointsEnabled());
121 }

References getTestInstance().

+ Here is the call graph for this function:

◆ testGetAndWithInstantFeedbackSolutionEnabled()

SettingsQuestionBehaviourTest::testGetAndWithInstantFeedbackSolutionEnabled ( bool  $io)

Definition at line 166 of file SettingsQuestionBehaviourTest.php.

166 : void
167 {
168 $Settings_question_behaviour = $this->getTestInstance()->withInstantFeedbackSolutionEnabled($io);
169
170 $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
171 $this->assertEquals($io, $Settings_question_behaviour->getInstantFeedbackSolutionEnabled());
172 }

References getTestInstance().

+ Here is the call graph for this function:

◆ testGetAndWithInstantFeedbackSpecificEnabled()

SettingsQuestionBehaviourTest::testGetAndWithInstantFeedbackSpecificEnabled ( bool  $io)

Definition at line 149 of file SettingsQuestionBehaviourTest.php.

149 : void
150 {
151 $Settings_question_behaviour = $this->getTestInstance()->withInstantFeedbackSpecificEnabled($io);
152
153 $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
154 $this->assertEquals($io, $Settings_question_behaviour->getInstantFeedbackSpecificEnabled());
155 }

References getTestInstance().

+ Here is the call graph for this function:

◆ testGetAndWithLockAnswerOnInstantFeedbackEnabled()

SettingsQuestionBehaviourTest::testGetAndWithLockAnswerOnInstantFeedbackEnabled ( bool  $io)

Definition at line 200 of file SettingsQuestionBehaviourTest.php.

200 : void
201 {
202 $Settings_question_behaviour = $this->getTestInstance()->withLockAnswerOnInstantFeedbackEnabled($io);
203
204 $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
205 $this->assertEquals($io, $Settings_question_behaviour->getLockAnswerOnInstantFeedbackEnabled());
206 }

References getTestInstance().

+ Here is the call graph for this function:

◆ testGetAndWithLockAnswerOnNextQuestionEnabled()

SettingsQuestionBehaviourTest::testGetAndWithLockAnswerOnNextQuestionEnabled ( bool  $io)

Definition at line 217 of file SettingsQuestionBehaviourTest.php.

217 : void
218 {
219 $Settings_question_behaviour = $this->getTestInstance()->withLockAnswerOnNextQuestionEnabled($io);
220
221 $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
222 $this->assertEquals($io, $Settings_question_behaviour->getLockAnswerOnNextQuestionEnabled());
223 }

References getTestInstance().

+ Here is the call graph for this function:

◆ testGetAndWithQuestionTitleOutputMode()

SettingsQuestionBehaviourTest::testGetAndWithQuestionTitleOutputMode ( int  $io)

Definition at line 45 of file SettingsQuestionBehaviourTest.php.

45 : void
46 {
47 $Settings_question_behaviour = $this->getTestInstance()->withQuestionTitleOutputMode($io);
48
49 $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
50 $this->assertEquals($io, $Settings_question_behaviour->getQuestionTitleOutputMode());
51 }

References getTestInstance().

+ Here is the call graph for this function:

◆ testGetAndWithShuffleQuestions()

SettingsQuestionBehaviourTest::testGetAndWithShuffleQuestions ( bool  $io)

Definition at line 98 of file SettingsQuestionBehaviourTest.php.

98 : void
99 {
100 $Settings_question_behaviour = $this->getTestInstance()->withShuffleQuestions($io);
101
102 $this->assertInstanceOf(SettingsQuestionBehaviour::class, $Settings_question_behaviour);
103 $this->assertEquals($io, $Settings_question_behaviour->getShuffleQuestions());
104 }

References getTestInstance().

+ Here is the call graph for this function:

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