3declare(strict_types=1);
 
   30    protected function setUp(): void
 
   36        $lng_mock = $this->createMock(ilLanguage::class);
 
   37        $ctrl_mock = $this->createMock(ilCtrl::class);
 
   38        $ctrl_mock->expects($this->any())
 
   39                  ->method(
"getFormAction")
 
   40                  ->willReturnCallback(
function () {
 
   41                      return "testFormAction";
 
   47        $this->
setGlobalVariable(
"component.repository", $this->createMock(ilComponentRepository::class));
 
   48        $component_factory = $this->createMock(ilComponentFactory::class);
 
   49        $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
 
   55        $this->parentObj_mock = $this->getMockBuilder(ilObjTestGUI::class)->disableOriginalConstructor()->onlyMethods(array(
'getObject'))->getMock();
 
   56        $this->parentObj_mock->expects($this->any())->method(
'getObject')->willReturn($this->createMock(ilObjTest::class));
 
   62        $this->assertInstanceOf(ilTestQuestionsTableGUI::class, $this->tableGui);
 
   67        $this->assertIsBool($this->tableGui->isQuestionManagingEnabled());
 
   68        $this->tableGui->setQuestionManagingEnabled(
false);
 
   69        $this->assertFalse($this->tableGui->isQuestionManagingEnabled());
 
   70        $this->tableGui->setQuestionManagingEnabled(
true);
 
   71        $this->assertTrue($this->tableGui->isQuestionManagingEnabled());
 
   76        $this->assertIsBool($this->tableGui->isPositionInsertCommandsEnabled());
 
   77        $this->tableGui->setPositionInsertCommandsEnabled(
false);
 
   78        $this->assertFalse($this->tableGui->isPositionInsertCommandsEnabled());
 
   79        $this->tableGui->setPositionInsertCommandsEnabled(
true);
 
   80        $this->assertTrue($this->tableGui->isPositionInsertCommandsEnabled());
 
   85        $this->assertIsBool($this->tableGui->isQuestionPositioningEnabled());
 
   86        $this->tableGui->setQuestionPositioningEnabled(
false);
 
   87        $this->assertFalse($this->tableGui->isQuestionPositioningEnabled());
 
   88        $this->tableGui->setQuestionPositioningEnabled(
true);
 
   89        $this->assertTrue($this->tableGui->isQuestionPositioningEnabled());
 
   94        $this->assertIsBool($this->tableGui->isObligatoryQuestionsHandlingEnabled());
 
   95        $this->tableGui->setObligatoryQuestionsHandlingEnabled(
false);
 
   96        $this->assertFalse($this->tableGui->isObligatoryQuestionsHandlingEnabled());
 
   97        $this->tableGui->setObligatoryQuestionsHandlingEnabled(
true);
 
   98        $this->assertTrue($this->tableGui->isObligatoryQuestionsHandlingEnabled());
 
  103        $this->assertIsFloat($this->tableGui->getTotalPoints());
 
  104        $this->tableGui->setTotalPoints(125.251);
 
  105        $this->assertEquals(125.251, $this->tableGui->getTotalPoints());
 
  110        $this->assertIsBool($this->tableGui->isQuestionRemoveRowButtonEnabled());
 
  111        $this->tableGui->setQuestionRemoveRowButtonEnabled(
false);
 
  112        $this->assertFalse($this->tableGui->isQuestionRemoveRowButtonEnabled());
 
  113        $this->tableGui->setQuestionRemoveRowButtonEnabled(
true);
 
  114        $this->assertTrue($this->tableGui->isQuestionRemoveRowButtonEnabled());
 
setGlobalVariable(string $name, $value)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ilObjTestGUI $parentObj_mock
 
testQuestionPositioningEnabled()
 
test_instantiateObject_shouldReturnInstance()
 
ilTestQuestionsTableGUI $tableGui
 
testQuestionRemoveRowButtonEnabled()
 
testQuestionManagingEnabled()
 
testObligatoryQuestionsHandlingEnabled()
 
testPositionInsertCommandsEnabled()
 
Class ChatMainBarProvider \MainMenu\Provider.