ILIAS  release_8 Revision v8.23
ilTestDashboardGUITest 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 ilTestDashboardGUITest:
+ Collaboration diagram for ilTestDashboardGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testTestObj ()
 
 testQuestionSetConfig ()
 
 testTestAccess ()
 
 testTestTabs ()
 
 testObjectiveParent ()
 

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

ilTestDashboardGUI $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 ilTestDashboardGUITest

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

Definition at line 25 of file ilTestDashboardGUITest.php.

Member Function Documentation

◆ setUp()

ilTestDashboardGUITest::setUp ( )
protected

Definition at line 29 of file ilTestDashboardGUITest.php.

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

◆ test_instantiateObject_shouldReturnInstance()

ilTestDashboardGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 39 of file ilTestDashboardGUITest.php.

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

◆ testObjectiveParent()

ilTestDashboardGUITest::testObjectiveParent ( )

Definition at line 72 of file ilTestDashboardGUITest.php.

72  : void
73  {
74  $objectiveParent_mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
75  $this->testObj->setObjectiveParent($objectiveParent_mock);
76  $this->assertEquals($objectiveParent_mock, $this->testObj->getObjectiveParent());
77  }

◆ testQuestionSetConfig()

ilTestDashboardGUITest::testQuestionSetConfig ( )

Definition at line 51 of file ilTestDashboardGUITest.php.

51  : void
52  {
53  $testQuestionSetConfig_mock = $this->createMock(ilTestQuestionSetConfig::class);
54  $this->testObj->setQuestionSetConfig($testQuestionSetConfig_mock);
55  $this->assertEquals($testQuestionSetConfig_mock, $this->testObj->getQuestionSetConfig());
56  }

◆ testTestAccess()

ilTestDashboardGUITest::testTestAccess ( )

Definition at line 58 of file ilTestDashboardGUITest.php.

58  : void
59  {
60  $testAccess_mock = $this->createMock(ilTestAccess::class);
61  $this->testObj->setTestAccess($testAccess_mock);
62  $this->assertEquals($testAccess_mock, $this->testObj->getTestAccess());
63  }

◆ testTestObj()

ilTestDashboardGUITest::testTestObj ( )

Definition at line 44 of file ilTestDashboardGUITest.php.

44  : void
45  {
46  $objTest_mock = $this->createMock(ilObjTest::class);
47  $this->testObj->setTestObj($objTest_mock);
48  $this->assertEquals($objTest_mock, $this->testObj->getTestObj());
49  }

◆ testTestTabs()

ilTestDashboardGUITest::testTestTabs ( )

Definition at line 65 of file ilTestDashboardGUITest.php.

65  : void
66  {
67  $testTabsManager_mock = $this->createMock(ilTestTabsManager::class);
68  $this->testObj->setTestTabs($testTabsManager_mock);
69  $this->assertEquals($testTabsManager_mock, $this->testObj->getTestTabs());
70  }

Field Documentation

◆ $testObj

ilTestDashboardGUI ilTestDashboardGUITest::$testObj
private

Definition at line 27 of file ilTestDashboardGUITest.php.


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