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

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testGetGeneralConfigTabLabel ()
 
 testPoolConfigTabLabel ()
 

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

ilTestRandomQuestionSetConfigGUI $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 ilTestRandomQuestionSetConfigGUITest

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

Definition at line 25 of file ilTestRandomQuestionSetConfigGUITest.php.

Member Function Documentation

◆ setUp()

ilTestRandomQuestionSetConfigGUITest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestRandomQuestionSetConfigGUITest.php.

29 : void
30 {
31 parent::setUp();
32
34 $this->addGlobal_ilUser();
36
37 $this->testObj = new ilTestRandomQuestionSetConfigGUI(
38 $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->getMock(),
39 $this->createMock(ilAccessHandler::class),
40 $this->getMockBuilder(ilTabsGUI::class)->disableOriginalConstructor()->getMock(),
41 $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock(),
42 $this->createMock(ilGlobalTemplateInterface::class),
43 $this->createMock(ilDBInterface::class),
44 $this->getMockBuilder(ilTree::class)->disableOriginalConstructor()->getMock(),
45 $this->createMock(ilComponentRepository::class),
46 $this->getMockBuilder(ilObjTest::class)->disableOriginalConstructor()->getMock(),
47 $this->getMockBuilder(ilTestProcessLockerFactory::class)->disableOriginalConstructor()->getMock()
48 );
49 }

References ilTestBaseTestCase\addGlobal_ilObjDataCache(), ilTestBaseTestCase\addGlobal_ilUser(), and ilTestBaseTestCase\addGlobal_objDefinition().

+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilTestRandomQuestionSetConfigGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 51 of file ilTestRandomQuestionSetConfigGUITest.php.

51 : void
52 {
53 $this->assertInstanceOf(ilTestRandomQuestionSetConfigGUI::class, $this->testObj);
54 }

◆ testGetGeneralConfigTabLabel()

ilTestRandomQuestionSetConfigGUITest::testGetGeneralConfigTabLabel ( )

Definition at line 56 of file ilTestRandomQuestionSetConfigGUITest.php.

56 : void
57 {
58 $lng_mock = $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock();
59 $lng_mock->expects($this->once())
60 ->method("txt")
61 ->with("tst_rnd_quest_cfg_tab_general")
62 ->willReturn("testString");
63
64 $this->testObj->lng = $lng_mock;
65
66 $this->assertEquals("testString", $this->testObj->getGeneralConfigTabLabel());
67 }

◆ testPoolConfigTabLabel()

ilTestRandomQuestionSetConfigGUITest::testPoolConfigTabLabel ( )

Definition at line 69 of file ilTestRandomQuestionSetConfigGUITest.php.

69 : void
70 {
71 $lng_mock = $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock();
72 $lng_mock->expects($this->once())
73 ->method("txt")
74 ->with("tst_rnd_quest_cfg_tab_pool")
75 ->willReturn("testString");
76
77 $this->testObj->lng = $lng_mock;
78
79 $this->assertEquals("testString", $this->testObj->getPoolConfigTabLabel());
80 }

Field Documentation

◆ $testObj

ilTestRandomQuestionSetConfigGUI ilTestRandomQuestionSetConfigGUITest::$testObj
private

Definition at line 27 of file ilTestRandomQuestionSetConfigGUITest.php.


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