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

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testLostPools ()
 
 testParticipantDataExists ()
 
 testTargetGUI ()
 
 testContext ()
 
 testQuestionSetConfig ()
 

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

ilTestRandomQuestionSetConfigStateMessageHandler $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 ilTestRandomQuestionSetConfigStateMessageHandlerTest

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

Definition at line 25 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

Member Function Documentation

◆ setUp()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

29 : void
30 {
31 parent::setUp();
32 $this->addGlobal_ilUser();
33
35 $this->createMock(ilLanguage::class),
36 $this->createMock(ILIAS\DI\UIServices::class),
37 $this->createMock(ilCtrl::class)
38 );
39 }
Class HTTPServicesTest.
Class ChatMainBarProvider \MainMenu\Provider.

References ilTestBaseTestCase\addGlobal_ilUser().

+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 41 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

41 : void
42 {
43 $this->assertInstanceOf(ilTestRandomQuestionSetConfigStateMessageHandler::class, $this->testObj);
44 }

◆ testContext()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::testContext ( )

Definition at line 74 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

74 : void
75 {
76 $this->testObj->setContext("test");
77 $this->assertEquals("test", $this->testObj->getContext());
78 }

◆ testLostPools()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::testLostPools ( )

Definition at line 46 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

46 : void
47 {
48 $expected = [
52 ];
53
54 $this->testObj->setLostPools($expected);
55 $this->assertEquals($expected, $this->testObj->getLostPools());
56 }

◆ testParticipantDataExists()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::testParticipantDataExists ( )

Definition at line 58 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

58 : void
59 {
60 $this->testObj->setParticipantDataExists(false);
61 $this->assertFalse($this->testObj->doesParticipantDataExists());
62
63 $this->testObj->setParticipantDataExists(true);
64 $this->assertTrue($this->testObj->doesParticipantDataExists());
65 }

◆ testQuestionSetConfig()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::testQuestionSetConfig ( )

Definition at line 80 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

80 : void
81 {
82 $mock = $this->createMock(ilTestRandomQuestionSetConfig::class);
83 $this->testObj->setQuestionSetConfig($mock);
84 $this->assertEquals($mock, $this->testObj->getQuestionSetConfig());
85 }

◆ testTargetGUI()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::testTargetGUI ( )

Definition at line 67 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

67 : void
68 {
69 $targetGui_mock = $this->createMock(ilTestRandomQuestionSetConfigGUI::class);
70 $this->testObj->setTargetGUI($targetGui_mock);
71 $this->assertEquals($targetGui_mock, $this->testObj->getTargetGUI());
72 }

Field Documentation

◆ $testObj

ilTestRandomQuestionSetConfigStateMessageHandler ilTestRandomQuestionSetConfigStateMessageHandlerTest::$testObj
private

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