29    protected function setUp(): void
 
   39        $this->assertInstanceOf(
'assKprimChoice', $instance);
 
   45        $this->assertEquals(
'assKprimChoice', $obj->getQuestionType());
 
   51        $this->assertEquals(
'qpl_qst_kprim', $obj->getAdditionalTableName());
 
   57        $this->assertEquals(
'qpl_a_kprim', $obj->getAnswerTableName());
 
   95        $this->assertEquals(
false, $obj->isValidOptionLabel(
'not valid'));
 
   96        $this->assertEquals(
true, $obj->isValidOptionLabel($obj::OPTION_LABEL_RIGHT_WRONG));
 
  102        $this->assertEquals(
true, $obj->isObligationPossible(1));
 
  120        $this->assertEquals(
false, $obj->isValidAnswerType(
'not valid'));
 
  121        $this->assertEquals(
true, $obj->isValidAnswerType($obj::ANSWER_TYPE_SINGLE_LINE));
 
setGlobalVariable(string $name, $value)
 
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_getAdditionalTableName_shouldReturnAdditionalTableName()
 
test_getQuestionType_shouldReturnQuestionType()
 
test_isObligationPossible_shouldReturnTrue()
 
test_isValidOptionLabel_shouldReturnTrue()
 
test_instantiateObject_shouldReturnInstance()