ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
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(\ilLanguage::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 $DIC['ilUser']
52 );
53 }
54
56 {
57 $this->assertInstanceOf(ExportRandomQuestionSet::class, $this->testObj);
58 }
59}
Class ilTestBaseClass.
addGlobal_resourceStorage()
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
global $DIC
Definition: shib_login.php:26