ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestQuestionNavigationGUITest Class Reference

Class ilTestQuestionNavigationGUITest. More...

+ Inheritance diagram for ilTestQuestionNavigationGUITest:
+ Collaboration diagram for ilTestQuestionNavigationGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testEditSolutionCommand ()
 
 testQuestionWorkedThrough ()
 
 testSubmitSolutionCommand ()
 
 testRevertChangesLinkTarget ()
 
 testDiscardSolutionButtonEnabled ()
 
 testSkipQuestionLinkTarget ()
 
 testInstantFeedbackCommand ()
 
 testAnswerFreezingEnabled ()
 
 testForceInstantResponseEnabled ()
 
 testRequestHintCommand ()
 
 testShowHintsCommand ()
 
 testHintRequestsExist ()
 
 testQuestionMarkLinkTarget ()
 
 testQuestionMarked ()
 
 testAnythingRendered ()
 

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_ilRbacAdmin ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilBench ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_GlobalScreenService ()
 
 addGlobal_ilNavigationHistory ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilComponentFactory ()
 
 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 ()
 
 addGlobal_skillService ()
 
 addGlobal_objectService ()
 
 addGlobal_resourceStorage ()
 
 getTestObjMock ()
 

Private Attributes

ilTestQuestionNavigationGUI $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestQuestionNavigationGUITest::setUp ( )
protected

Definition at line 29 of file ilTestQuestionNavigationGUITest.php.

29  : void
30  {
31  parent::setUp();
32 
33  $test_helper = new UITestHelper();
34  $ui_factory = $test_helper->factory();
35  $ui_renderer = $test_helper->renderer();
36 
37  $this->testObj = new ilTestQuestionNavigationGUI(
38  $this->createMock(ilLanguage::class),
39  $ui_factory,
40  $ui_renderer
41  );
42  }
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...

◆ test_instantiateObject_shouldReturnInstance()

ilTestQuestionNavigationGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 44 of file ilTestQuestionNavigationGUITest.php.

44  : void
45  {
46  $this->assertInstanceOf(ilTestQuestionNavigationGUI::class, $this->testObj);
47  }

◆ testAnswerFreezingEnabled()

ilTestQuestionNavigationGUITest::testAnswerFreezingEnabled ( )

Definition at line 97 of file ilTestQuestionNavigationGUITest.php.

97  : void
98  {
99  $this->testObj->setAnswerFreezingEnabled(false);
100  $this->assertFalse($this->testObj->isAnswerFreezingEnabled());
101 
102  $this->testObj->setAnswerFreezingEnabled(true);
103  $this->assertTrue($this->testObj->isAnswerFreezingEnabled());
104  }

◆ testAnythingRendered()

ilTestQuestionNavigationGUITest::testAnythingRendered ( )

Definition at line 151 of file ilTestQuestionNavigationGUITest.php.

151  : void
152  {
153  $this->assertFalse($this->testObj->isAnythingRendered());
154 
155  $this->testObj->setAnythingRendered();
156  $this->assertTrue($this->testObj->isAnythingRendered());
157  }

◆ testDiscardSolutionButtonEnabled()

ilTestQuestionNavigationGUITest::testDiscardSolutionButtonEnabled ( )

Definition at line 76 of file ilTestQuestionNavigationGUITest.php.

76  : void
77  {
78  $this->testObj->setDiscardSolutionButtonEnabled(false);
79  $this->assertFalse($this->testObj->isDiscardSolutionButtonEnabled());
80 
81  $this->testObj->setDiscardSolutionButtonEnabled(true);
82  $this->assertTrue($this->testObj->isDiscardSolutionButtonEnabled());
83  }

◆ testEditSolutionCommand()

ilTestQuestionNavigationGUITest::testEditSolutionCommand ( )

Definition at line 49 of file ilTestQuestionNavigationGUITest.php.

49  : void
50  {
51  $this->testObj->setEditSolutionCommand("test");
52  $this->assertEquals("test", $this->testObj->getEditSolutionCommand());
53  }

◆ testForceInstantResponseEnabled()

ilTestQuestionNavigationGUITest::testForceInstantResponseEnabled ( )

Definition at line 106 of file ilTestQuestionNavigationGUITest.php.

106  : void
107  {
108  $this->testObj->setForceInstantResponseEnabled(false);
109  $this->assertFalse($this->testObj->isForceInstantResponseEnabled());
110 
111  $this->testObj->setForceInstantResponseEnabled(true);
112  $this->assertTrue($this->testObj->isForceInstantResponseEnabled());
113  }

◆ testHintRequestsExist()

ilTestQuestionNavigationGUITest::testHintRequestsExist ( )

Definition at line 127 of file ilTestQuestionNavigationGUITest.php.

127  : void
128  {
129  $this->testObj->setHintRequestsExist(false);
130  $this->assertFalse($this->testObj->hintRequestsExist());
131 
132  $this->testObj->setHintRequestsExist(true);
133  $this->assertTrue($this->testObj->hintRequestsExist());
134  }

◆ testInstantFeedbackCommand()

ilTestQuestionNavigationGUITest::testInstantFeedbackCommand ( )

Definition at line 91 of file ilTestQuestionNavigationGUITest.php.

91  : void
92  {
93  $this->testObj->setInstantFeedbackCommand("test");
94  $this->assertEquals("test", $this->testObj->getInstantFeedbackCommand());
95  }

◆ testQuestionMarked()

ilTestQuestionNavigationGUITest::testQuestionMarked ( )

Definition at line 142 of file ilTestQuestionNavigationGUITest.php.

142  : void
143  {
144  $this->testObj->setQuestionMarked(false);
145  $this->assertFalse($this->testObj->isQuestionMarked());
146 
147  $this->testObj->setQuestionMarked(true);
148  $this->assertTrue($this->testObj->isQuestionMarked());
149  }

◆ testQuestionMarkLinkTarget()

ilTestQuestionNavigationGUITest::testQuestionMarkLinkTarget ( )

Definition at line 136 of file ilTestQuestionNavigationGUITest.php.

136  : void
137  {
138  $this->testObj->setQuestionMarkLinkTarget("test");
139  $this->assertEquals("test", $this->testObj->getQuestionMarkLinkTarget());
140  }

◆ testQuestionWorkedThrough()

ilTestQuestionNavigationGUITest::testQuestionWorkedThrough ( )

Definition at line 55 of file ilTestQuestionNavigationGUITest.php.

55  : void
56  {
57  $this->testObj->setQuestionWorkedThrough(false);
58  $this->assertFalse($this->testObj->isQuestionWorkedThrough());
59 
60  $this->testObj->setQuestionWorkedThrough(true);
61  $this->assertTrue($this->testObj->isQuestionWorkedThrough());
62  }

◆ testRequestHintCommand()

ilTestQuestionNavigationGUITest::testRequestHintCommand ( )

Definition at line 115 of file ilTestQuestionNavigationGUITest.php.

115  : void
116  {
117  $this->testObj->setRequestHintCommand("test");
118  $this->assertEquals("test", $this->testObj->getRequestHintCommand());
119  }

◆ testRevertChangesLinkTarget()

ilTestQuestionNavigationGUITest::testRevertChangesLinkTarget ( )

Definition at line 70 of file ilTestQuestionNavigationGUITest.php.

70  : void
71  {
72  $this->testObj->setRevertChangesLinkTarget("test");
73  $this->assertEquals("test", $this->testObj->getRevertChangesLinkTarget());
74  }

◆ testShowHintsCommand()

ilTestQuestionNavigationGUITest::testShowHintsCommand ( )

Definition at line 121 of file ilTestQuestionNavigationGUITest.php.

121  : void
122  {
123  $this->testObj->setShowHintsCommand("test");
124  $this->assertEquals("test", $this->testObj->getShowHintsCommand());
125  }

◆ testSkipQuestionLinkTarget()

ilTestQuestionNavigationGUITest::testSkipQuestionLinkTarget ( )

Definition at line 85 of file ilTestQuestionNavigationGUITest.php.

85  : void
86  {
87  $this->testObj->setSkipQuestionLinkTarget("test");
88  $this->assertEquals("test", $this->testObj->getSkipQuestionLinkTarget());
89  }

◆ testSubmitSolutionCommand()

ilTestQuestionNavigationGUITest::testSubmitSolutionCommand ( )

Definition at line 64 of file ilTestQuestionNavigationGUITest.php.

64  : void
65  {
66  $this->testObj->setSubmitSolutionCommand("test");
67  $this->assertEquals("test", $this->testObj->getSubmitSolutionCommand());
68  }

Field Documentation

◆ $testObj

ilTestQuestionNavigationGUI ilTestQuestionNavigationGUITest::$testObj
private

Definition at line 27 of file ilTestQuestionNavigationGUITest.php.


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