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

Class ilTestArchiveServiceTest. More...

+ Inheritance diagram for ilTestArchiveServiceTest:
+ Collaboration diagram for ilTestArchiveServiceTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testParticipantData ()
 

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

ilTestArchiveService $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestArchiveServiceTest::setUp ( )
protected

Definition at line 29 of file ilTestArchiveServiceTest.php.

29  : void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestArchiveService(
34  $this->createMock(ilObjTest::class),
35  $this->createMock(ilLanguage::class),
36  $this->createMock(ilObjectDataCache::class),
37  $this->createMock(ilTestHTMLGenerator::class)
38  );
39  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestArchiveServiceTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 41 of file ilTestArchiveServiceTest.php.

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

◆ testParticipantData()

ilTestArchiveServiceTest::testParticipantData ( )

Definition at line 46 of file ilTestArchiveServiceTest.php.

46  : void
47  {
48  $testParticipantData_mock = $this->createMock(ilTestParticipantData::class);
49 
50  $this->testObj->setParticipantData($testParticipantData_mock);
51 
52  $this->assertEquals($testParticipantData_mock, $this->testObj->getParticipantData());
53  }

Field Documentation

◆ $testObj

ilTestArchiveService ilTestArchiveServiceTest::$testObj
private

Definition at line 27 of file ilTestArchiveServiceTest.php.


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