29 protected function setUp(): void
32 $this->setGlobalVariable(
'ilias', $this->getIliasMock());
38 $this->assertInstanceOf(
'assKprimChoice', $instance);
44 $this->assertEquals(
'assKprimChoice', $obj->getQuestionType());
50 $this->assertEquals(
'qpl_qst_kprim', $obj->getAdditionalTableName());
56 $this->assertEquals(
'qpl_a_kprim', $obj->getAnswerTableName());
62 $this->assertEquals(
false, $obj->isValidOptionLabel(
'not valid'));
63 $this->assertEquals(
true, $obj->isValidOptionLabel($obj::OPTION_LABEL_RIGHT_WRONG));
69 $this->assertEquals(
false, $obj->isValidAnswerType(
'not valid'));
70 $this->assertEquals(
true, $obj->isValidAnswerType($obj::ANSWER_TYPE_SINGLE_LINE));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_getAnswerTableName_shouldReturnAnswerTableName()
test_isValidAnswerType_shouldReturnTrue()
test_getQuestionType_shouldReturnQuestionType()
test_instantiateObject_shouldReturnInstance()
test_isValidOptionLabel_shouldReturnTrue()
test_getAdditionalTableName_shouldReturnAdditionalTableName()