ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ilTestArchiveServiceTest Class Reference

Class ilTestArchiveServiceTest. More...

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

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testParticipantData ()
 
- Public Member Functions inherited from ilTestBaseTestCase
 createInstanceOf (string $class_name, array $explicit_parameters=[])
 
 createTraitInstanceOf (string $class_name, array $explicit_parameters=[])
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 

Private Attributes

ilTestArchiveService $testObj
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 
static getNonPublicPropertyValue (object $obj, string $name)
 
- Data Fields inherited from ilTestBaseTestCase
const string MOCKED_METHOD_WITHOUT_OUTPUT = 'MOCKED_METHOD_WITHOUT_OUTPUT'
 
const string DYNAMIC_CLASS = 'DynamicClass'
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 
Container $backup_dic = null
 
- Static Protected Attributes inherited from ilTestBaseTestCase
static int $DYNAMIC_CLASS_COUNT = 0
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestArchiveServiceTest::setUp ( )
protected

Definition at line 29 of file ilTestArchiveServiceTest.php.

References getTestObjMock().

29  : void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestArchiveService(
34  $this->getTestObjMock(),
35  $this->createMock(ilLanguage::class),
36  $this->createMock(ilDBInterface::class),
37  $this->createMock(ilObjUser::class),
38  $this->createMock(ILIAS\UI\Factory::class),
39  $this->createMock(ILIAS\UI\Renderer::class),
40  $this->createMock(ILIAS\ResourceStorage\Services::class),
41  $this->createMock(Psr\Http\Message\ServerRequestInterface::class),
42  $this->createMock(ilObjectDataCache::class),
43  $this->createMock(ilTestParticipantAccessFilterFactory::class),
44  $this->createMock(ilTestHTMLGenerator::class)
45  );
46  }
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilTestArchiveServiceTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 48 of file ilTestArchiveServiceTest.php.

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

◆ testParticipantData()

ilTestArchiveServiceTest::testParticipantData ( )

Definition at line 53 of file ilTestArchiveServiceTest.php.

53  : void
54  {
55  $testParticipantData_mock = $this->createMock(ilTestParticipantData::class);
56 
57  $this->testObj->setParticipantData($testParticipantData_mock);
58 
59  $this->assertEquals($testParticipantData_mock, $this->testObj->getParticipantData());
60  }

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: