ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestRandomQuestionSetConfigStateMessageHandlerTest Class Reference

Class ilTestRandomQuestionSetConfigStateMessageHandlerTest. 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_ilRbacAdmin ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilBench ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_GlobalScreenService ()
 
 addGlobal_ilNavigationHistory ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilComponentFactory ()
 
 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 ()
 
 addGlobal_skillService ()
 
 addGlobal_objectService ()
 
 addGlobal_resourceStorage ()
 
 getTestObjMock ()
 

Private Attributes

ilTestRandomQuestionSetConfigStateMessageHandler $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::setUp ( )
protected

Definition at line 29 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

References $DIC, ilTestBaseTestCase\addGlobal_ilCtrl(), ilTestBaseTestCase\addGlobal_ilUser(), ilTestBaseTestCase\addGlobal_uiFactory(), and ilTestBaseTestCase\addGlobal_uiRenderer().

29  : void
30  {
31  global $DIC;
32  parent::setUp();
33  $this->addGlobal_ilUser();
34  $this->addGlobal_ilCtrl();
35  $this->addGlobal_uiFactory();
36  $this->addGlobal_uiRenderer();
37 
38 
40  $DIC['lng'],
41  $DIC['ui.factory'],
42  $DIC['ui.renderer'],
43  $DIC['ilCtrl']
44  );
45  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 47 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

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

◆ testContext()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::testContext ( )

Definition at line 80 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

80  : void
81  {
82  $this->testObj->setContext("test");
83  $this->assertEquals("test", $this->testObj->getContext());
84  }

◆ testLostPools()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::testLostPools ( )

Definition at line 52 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

52  : void
53  {
54  $expected = [
58  ];
59 
60  $this->testObj->setLostPools($expected);
61  $this->assertEquals($expected, $this->testObj->getLostPools());
62  }

◆ testParticipantDataExists()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::testParticipantDataExists ( )

Definition at line 64 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

64  : void
65  {
66  $this->testObj->setParticipantDataExists(false);
67  $this->assertFalse($this->testObj->doesParticipantDataExists());
68 
69  $this->testObj->setParticipantDataExists(true);
70  $this->assertTrue($this->testObj->doesParticipantDataExists());
71  }

◆ testQuestionSetConfig()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::testQuestionSetConfig ( )

Definition at line 86 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

86  : void
87  {
88  $mock = $this->createMock(ilTestRandomQuestionSetConfig::class);
89  $this->testObj->setQuestionSetConfig($mock);
90  $this->assertEquals($mock, $this->testObj->getQuestionSetConfig());
91  }

◆ testTargetGUI()

ilTestRandomQuestionSetConfigStateMessageHandlerTest::testTargetGUI ( )

Definition at line 73 of file ilTestRandomQuestionSetConfigStateMessageHandlerTest.php.

73  : void
74  {
75  $targetGui_mock = $this->createMock(ilTestRandomQuestionSetConfigGUI::class);
76  $this->testObj->setTargetGUI($targetGui_mock);
77  $this->assertEquals($targetGui_mock, $this->testObj->getTargetGUI());
78  }

Field Documentation

◆ $testObj

ilTestRandomQuestionSetConfigStateMessageHandler ilTestRandomQuestionSetConfigStateMessageHandlerTest::$testObj
private

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