30    protected function setUp(): void
 
   34        $ilCtrl_mock = $this->getMockBuilder(ilCtrl::class)
 
   35                            ->disableOriginalConstructor()
 
   37        $ilCtrl_mock->method(
'saveParameter');
 
   38        $ilCtrl_mock->method(
'saveParameterByClass');
 
   41        $lng_mock = $this->getMockBuilder(ilLanguage::class)
 
   42                         ->disableOriginalConstructor()
 
   43                         ->onlyMethods([
'txt'])
 
   45        $lng_mock->method(
'txt')->will($this->returnValue(
'Test'));
 
   56        require_once 
'./Modules/TestQuestionPool/classes/class.assOrderingQuestion.php';
 
   61        $this->assertInstanceOf(
'assOrderingQuestion', $instance);
 
   68        $this->assertInstanceOf(
'ilAssOrderingElementList', $list);
 
   69        $this->assertEquals($question_id, $list->getQuestionId());
 
   70        $this->assertEquals([], $list->getElements());
 
   80        $this->assertNotEquals($original, $list->
withElements([]));
 
   87        $this->assertInstanceOf(
'ilAssOrderingElement', $element);
 
   88        $this->assertEquals($element_id, $element->getId());
 
  101        $this->assertNotEquals($original, $element);
 
  105        $this->assertNotEquals($original, $element);
 
  109        $this->assertNotEquals($original, $element);
 
  110        $this->assertEquals($val, $element->
getPosition());
 
  113        $this->assertNotEquals($original, $element);
 
  116        $val = 
'some string';
 
  118        $this->assertNotEquals($original, $element);
 
  119        $this->assertEquals($val, $element->
getContent());
 
setGlobalVariable(string $name, $value)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
testOrderingElementListDefaults()
 
test_instantiateObject_shouldReturnInstance()
 
testOrderingElementMutation(ilAssOrderingElement $element)
@depends testOrderingElementDefaults
 
testOrderingElementListMutation(ilAssOrderingElementList $list)
@depends testOrderingElementListDefaults
 
testOrderingElementDefaults()
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
withElements(array $elements)
 
withContent(string $content)
 
withIndentation(int $indentation)
 
withPosition(int $position)
 
withRandomIdentifier(int $id)
 
withSolutionIdentifier(int $id)