ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestArchiveServiceTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
28 
29  protected function setUp(): 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  }
40 
42  {
43  $this->assertInstanceOf(ilTestArchiveService::class, $this->testObj);
44  }
45 
46  public function testParticipantData(): 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  }
54 }
Class ilTestArchiveServiceTest.
Class ilTestBaseClass.