ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestArchiveServiceTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
28
29 protected function setUp(): 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 }
47
49 {
50 $this->assertInstanceOf(ilTestArchiveService::class, $this->testObj);
51 }
52
53 public function testParticipantData(): 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 }
61}
Class ilTestArchiveServiceTest.
Class ilTestBaseClass.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.