ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ExportRandomQuestionSetTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
29{
31
32 protected function setUp(): void
33 {
34 global $DIC;
35 parent::setUp();
36
37 $this->addGlobal_ilErr();
39
40 $this->testObj = new ExportRandomQuestionSet(
41 $this->createMock(\ILIAS\Language\Language::class),
42 $this->createMock(\ilDBInterface::class),
43 $this->createmOck(\ilBenchmark::class),
44 $this->createMock(\ILIAS\Test\Logging\TestLogger::class),
45 $this->createMock(\ilTree::class),
46 $DIC['component.repository'],
47 $this->createMock(\ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::class),
48 $this->createMock(\ILIAS\FileDelivery\Services::class),
49 $this->getTestObjMock(),
50 $DIC['resource_storage']
51 );
52 }
53
55 {
56 $this->assertInstanceOf(ExportRandomQuestionSet::class, $this->testObj);
57 }
58}
Class ilTestBaseClass.
addGlobal_resourceStorage()
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
global $DIC
Definition: shib_login.php:26