ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestEvaluationGUITest 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 ilTestEvaluationGUITest:
+ Collaboration diagram for ilTestEvaluationGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testTestAccess ()
 
 testGetEvaluationQuestionId ()
 

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

ilTestEvaluationGUI $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 ilTestEvaluationGUITest

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

Definition at line 25 of file ilTestEvaluationGUITest.php.

Member Function Documentation

◆ setUp()

ilTestEvaluationGUITest::setUp ( )
protected

Definition at line 29 of file ilTestEvaluationGUITest.php.

References ilTestBaseTestCase\addGlobal_ilComponentRepository(), ilTestBaseTestCase\addGlobal_ilCtrl(), ilTestBaseTestCase\addGlobal_ilDB(), ilTestBaseTestCase\addGlobal_ilias(), ilTestBaseTestCase\addGlobal_ilObjDataCache(), ilTestBaseTestCase\addGlobal_ilTabs(), ilTestBaseTestCase\addGlobal_ilUser(), ilTestBaseTestCase\addGlobal_lng(), ilTestBaseTestCase\addGlobal_tpl(), and ilTestBaseTestCase\addGlobal_tree().

29  : void
30  {
31  parent::setUp();
32 
33  $this->addGlobal_lng();
34  $this->addGlobal_tpl();
35  $this->addGlobal_ilCtrl();
36  $this->addGlobal_ilias();
37  $this->addGlobal_tree();
38  $this->addGlobal_ilDB();
40  $this->addGlobal_ilTabs();
41  $this->addGlobal_ilObjDataCache();
42  $this->addGlobal_ilUser();
43 
44  $this->testObj = new ilTestEvaluationGUI($this->createMock(ilObjTest::class));
45  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilTestEvaluationGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 47 of file ilTestEvaluationGUITest.php.

47  : void
48  {
49  $this->assertInstanceOf(ilTestEvaluationGUI::class, $this->testObj);
50  }

◆ testGetEvaluationQuestionId()

ilTestEvaluationGUITest::testGetEvaluationQuestionId ( )

Definition at line 61 of file ilTestEvaluationGUITest.php.

61  : void
62  {
63  $this->assertEquals(20, $this->testObj->getEvaluationQuestionId(20, 0));
64  $this->assertEquals(20, $this->testObj->getEvaluationQuestionId(20, -210));
65  $this->assertEquals(125, $this->testObj->getEvaluationQuestionId(20, 125));
66  }

◆ testTestAccess()

ilTestEvaluationGUITest::testTestAccess ( )

Definition at line 52 of file ilTestEvaluationGUITest.php.

52  : void
53  {
54  $testAccess_mock = $this->createMock(ilTestAccess::class);
55 
56  $this->testObj->setTestAccess($testAccess_mock);
57 
58  $this->assertEquals($testAccess_mock, $this->testObj->getTestAccess());
59  }

Field Documentation

◆ $testObj

ilTestEvaluationGUI ilTestEvaluationGUITest::$testObj
private

Definition at line 27 of file ilTestEvaluationGUITest.php.


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