ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestQuestionNavigationGUITest 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 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 ()
 
 testCharSelectorEnabled ()
 

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

ilTestQuestionNavigationGUI $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 ilTestQuestionNavigationGUITest

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

Definition at line 25 of file ilTestQuestionNavigationGUITest.php.

Member Function Documentation

◆ setUp()

ilTestQuestionNavigationGUITest::setUp ( )
protected

Definition at line 29 of file ilTestQuestionNavigationGUITest.php.

29  : void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestQuestionNavigationGUI($this->createMock(ilLanguage::class));
34  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestQuestionNavigationGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 36 of file ilTestQuestionNavigationGUITest.php.

36  : void
37  {
38  $this->assertInstanceOf(ilTestQuestionNavigationGUI::class, $this->testObj);
39  }

◆ testAnswerFreezingEnabled()

ilTestQuestionNavigationGUITest::testAnswerFreezingEnabled ( )

Definition at line 89 of file ilTestQuestionNavigationGUITest.php.

89  : void
90  {
91  $this->testObj->setAnswerFreezingEnabled(false);
92  $this->assertFalse($this->testObj->isAnswerFreezingEnabled());
93 
94  $this->testObj->setAnswerFreezingEnabled(true);
95  $this->assertTrue($this->testObj->isAnswerFreezingEnabled());
96  }

◆ testAnythingRendered()

ilTestQuestionNavigationGUITest::testAnythingRendered ( )

Definition at line 143 of file ilTestQuestionNavigationGUITest.php.

143  : void
144  {
145  $this->assertFalse($this->testObj->isAnythingRendered());
146 
147  $this->testObj->setAnythingRendered();
148  $this->assertTrue($this->testObj->isAnythingRendered());
149  }

◆ testCharSelectorEnabled()

ilTestQuestionNavigationGUITest::testCharSelectorEnabled ( )

Definition at line 151 of file ilTestQuestionNavigationGUITest.php.

151  : void
152  {
153  $this->testObj->setCharSelectorEnabled(false);
154  $this->assertFalse($this->testObj->isCharSelectorEnabled());
155 
156  $this->testObj->setCharSelectorEnabled(true);
157  $this->assertTrue($this->testObj->isCharSelectorEnabled());
158  }

◆ testDiscardSolutionButtonEnabled()

ilTestQuestionNavigationGUITest::testDiscardSolutionButtonEnabled ( )

Definition at line 68 of file ilTestQuestionNavigationGUITest.php.

68  : void
69  {
70  $this->testObj->setDiscardSolutionButtonEnabled(false);
71  $this->assertFalse($this->testObj->isDiscardSolutionButtonEnabled());
72 
73  $this->testObj->setDiscardSolutionButtonEnabled(true);
74  $this->assertTrue($this->testObj->isDiscardSolutionButtonEnabled());
75  }

◆ testEditSolutionCommand()

ilTestQuestionNavigationGUITest::testEditSolutionCommand ( )

Definition at line 41 of file ilTestQuestionNavigationGUITest.php.

41  : void
42  {
43  $this->testObj->setEditSolutionCommand("test");
44  $this->assertEquals("test", $this->testObj->getEditSolutionCommand());
45  }

◆ testForceInstantResponseEnabled()

ilTestQuestionNavigationGUITest::testForceInstantResponseEnabled ( )

Definition at line 98 of file ilTestQuestionNavigationGUITest.php.

98  : void
99  {
100  $this->testObj->setForceInstantResponseEnabled(false);
101  $this->assertFalse($this->testObj->isForceInstantResponseEnabled());
102 
103  $this->testObj->setForceInstantResponseEnabled(true);
104  $this->assertTrue($this->testObj->isForceInstantResponseEnabled());
105  }

◆ testHintRequestsExist()

ilTestQuestionNavigationGUITest::testHintRequestsExist ( )

Definition at line 119 of file ilTestQuestionNavigationGUITest.php.

119  : void
120  {
121  $this->testObj->setHintRequestsExist(false);
122  $this->assertFalse($this->testObj->hintRequestsExist());
123 
124  $this->testObj->setHintRequestsExist(true);
125  $this->assertTrue($this->testObj->hintRequestsExist());
126  }

◆ testInstantFeedbackCommand()

ilTestQuestionNavigationGUITest::testInstantFeedbackCommand ( )

Definition at line 83 of file ilTestQuestionNavigationGUITest.php.

83  : void
84  {
85  $this->testObj->setInstantFeedbackCommand("test");
86  $this->assertEquals("test", $this->testObj->getInstantFeedbackCommand());
87  }

◆ testQuestionMarked()

ilTestQuestionNavigationGUITest::testQuestionMarked ( )

Definition at line 134 of file ilTestQuestionNavigationGUITest.php.

134  : void
135  {
136  $this->testObj->setQuestionMarked(false);
137  $this->assertFalse($this->testObj->isQuestionMarked());
138 
139  $this->testObj->setQuestionMarked(true);
140  $this->assertTrue($this->testObj->isQuestionMarked());
141  }

◆ testQuestionMarkLinkTarget()

ilTestQuestionNavigationGUITest::testQuestionMarkLinkTarget ( )

Definition at line 128 of file ilTestQuestionNavigationGUITest.php.

128  : void
129  {
130  $this->testObj->setQuestionMarkLinkTarget("test");
131  $this->assertEquals("test", $this->testObj->getQuestionMarkLinkTarget());
132  }

◆ testQuestionWorkedThrough()

ilTestQuestionNavigationGUITest::testQuestionWorkedThrough ( )

Definition at line 47 of file ilTestQuestionNavigationGUITest.php.

47  : void
48  {
49  $this->testObj->setQuestionWorkedThrough(false);
50  $this->assertFalse($this->testObj->isQuestionWorkedThrough());
51 
52  $this->testObj->setQuestionWorkedThrough(true);
53  $this->assertTrue($this->testObj->isQuestionWorkedThrough());
54  }

◆ testRequestHintCommand()

ilTestQuestionNavigationGUITest::testRequestHintCommand ( )

Definition at line 107 of file ilTestQuestionNavigationGUITest.php.

107  : void
108  {
109  $this->testObj->setRequestHintCommand("test");
110  $this->assertEquals("test", $this->testObj->getRequestHintCommand());
111  }

◆ testRevertChangesLinkTarget()

ilTestQuestionNavigationGUITest::testRevertChangesLinkTarget ( )

Definition at line 62 of file ilTestQuestionNavigationGUITest.php.

62  : void
63  {
64  $this->testObj->setRevertChangesLinkTarget("test");
65  $this->assertEquals("test", $this->testObj->getRevertChangesLinkTarget());
66  }

◆ testShowHintsCommand()

ilTestQuestionNavigationGUITest::testShowHintsCommand ( )

Definition at line 113 of file ilTestQuestionNavigationGUITest.php.

113  : void
114  {
115  $this->testObj->setShowHintsCommand("test");
116  $this->assertEquals("test", $this->testObj->getShowHintsCommand());
117  }

◆ testSkipQuestionLinkTarget()

ilTestQuestionNavigationGUITest::testSkipQuestionLinkTarget ( )

Definition at line 77 of file ilTestQuestionNavigationGUITest.php.

77  : void
78  {
79  $this->testObj->setSkipQuestionLinkTarget("test");
80  $this->assertEquals("test", $this->testObj->getSkipQuestionLinkTarget());
81  }

◆ testSubmitSolutionCommand()

ilTestQuestionNavigationGUITest::testSubmitSolutionCommand ( )

Definition at line 56 of file ilTestQuestionNavigationGUITest.php.

56  : void
57  {
58  $this->testObj->setSubmitSolutionCommand("test");
59  $this->assertEquals("test", $this->testObj->getSubmitSolutionCommand());
60  }

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: