ILIAS  release_8 Revision v8.23
ilTestQuestionSideListGUITest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilTestQuestionSideListGUITest:
+ Collaboration diagram for ilTestQuestionSideListGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testTargetGUI ()
 
 testQuestionSummaryData ()
 
 testCurrentSequenceElement ()
 
 testCurrentPresentationMode ()
 
 testDisabled ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIliasMock ()
 
 addGlobal_ilAccess ()
 
 addGlobal_ilUser ()
 
 addGlobal_objDefinition ()
 
 addGlobal_tree ()
 
 addGlobal_ilSetting ()
 
 addGlobal_rbacsystem ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilTabs ()
 
 addGlobal_ilObjDataCache ()
 
 addGlobal_ilLocator ()
 
 addGlobal_rbacreview ()
 
 addGlobal_ilToolbar ()
 
 addGlobal_http ()
 
 addGlobal_ilIliasIniFile ()
 
 addGlobal_ilLoggerFactory ()
 
 addGlobal_ilHelp ()
 
 addGlobal_ui ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 
 addGlobal_refinery ()
 

Private Attributes

ilTestQuestionSideListGUI $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilTestQuestionSideListGUITest

Author
Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de

Definition at line 25 of file ilTestQuestionSideListGUITest.php.

Member Function Documentation

◆ setUp()

ilTestQuestionSideListGUITest::setUp ( )
protected

Definition at line 29 of file ilTestQuestionSideListGUITest.php.

29  : void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestQuestionSideListGUI(
34  $this->createMock(ilCtrl::class),
35  $this->createMock(ilLanguage::class)
36  );
37  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestQuestionSideListGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 39 of file ilTestQuestionSideListGUITest.php.

39  : void
40  {
41  $this->assertInstanceOf(ilTestQuestionSideListGUI::class, $this->testObj);
42  }

◆ testCurrentPresentationMode()

ilTestQuestionSideListGUITest::testCurrentPresentationMode ( )

Definition at line 66 of file ilTestQuestionSideListGUITest.php.

66  : void
67  {
68  $this->testObj->setCurrentPresentationMode("test");
69  $this->assertEquals("test", $this->testObj->getCurrentPresentationMode());
70  }

◆ testCurrentSequenceElement()

ilTestQuestionSideListGUITest::testCurrentSequenceElement ( )

Definition at line 60 of file ilTestQuestionSideListGUITest.php.

60  : void
61  {
62  $this->testObj->setCurrentSequenceElement(125);
63  $this->assertEquals(125, $this->testObj->getCurrentSequenceElement());
64  }

◆ testDisabled()

ilTestQuestionSideListGUITest::testDisabled ( )

Definition at line 72 of file ilTestQuestionSideListGUITest.php.

72  : void
73  {
74  $this->testObj->setDisabled(false);
75  $this->assertFalse($this->testObj->isDisabled());
76 
77  $this->testObj->setDisabled(true);
78  $this->assertTrue($this->testObj->isDisabled());
79  }

◆ testQuestionSummaryData()

ilTestQuestionSideListGUITest::testQuestionSummaryData ( )

Definition at line 51 of file ilTestQuestionSideListGUITest.php.

51  : void
52  {
53  $expected = [
54  "test" => "Hello",
55  ];
56  $this->testObj->setQuestionSummaryData($expected);
57  $this->assertEquals($expected, $this->testObj->getQuestionSummaryData());
58  }

◆ testTargetGUI()

ilTestQuestionSideListGUITest::testTargetGUI ( )

Definition at line 44 of file ilTestQuestionSideListGUITest.php.

44  : void
45  {
46  $targetGui_mock = $this->createMock(ilTestPlayerAbstractGUI::class);
47  $this->testObj->setTargetGUI($targetGui_mock);
48  $this->assertEquals($targetGui_mock, $this->testObj->getTargetGUI());
49  }

Field Documentation

◆ $testObj

ilTestQuestionSideListGUI ilTestQuestionSideListGUITest::$testObj
private

Definition at line 27 of file ilTestQuestionSideListGUITest.php.


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