ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestExportFactoryTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 {
30 
31  protected function setUp(): void
32  {
33  parent::setUp();
34  $this->addGlobal_ilBench();
35 
36  $this->testObj = new ilTestExportFactory(
37  $this->createMock(ilObjTest::class),
38  $this->createMock(ilLanguage::class),
39  $this->createMock(ilLogger::class),
40  $this->createMock(ilTree::class),
41  $this->createMock(ilComponentRepository::class),
42  $this->createMock(QuestionInfoService::class)
43  );
44  }
45 
47  {
48  $this->assertInstanceOf(ilTestExportFactory::class, $this->testObj);
49  }
50 
51  /*public function testGetExporter(): void
52  {
53  $this->addGlobal_ilUser();
54  $this->addGlobal_lng();
55  $this->addGlobal_ilias();
56  $this->addGlobal_ilDB();
57  $this->addGlobal_ilBench();
58  $this->addGlobal_ilLog();
59  $this->addGlobal_ilErr();
60  $this->addGlobal_tree();
61  $this->addGlobal_ilAppEventHandler();
62  $this->addGlobal_objDefinition();
63  $this->addGlobal_ilComponentRepository();
64  $this->addGlobal_filesystem();
65 
66  $objTest = new ilObjTest();
67 
68  $objTest->setQuestionSetType(ilObjTest::QUESTION_SET_TYPE_FIXED);
69  $testObj = new ilTestExportFactory($objTest);
70  $this->assertInstanceOf(ilTestExportFixedQuestionSet::class, $testObj->getExporter());
71 
72  $objTest->setQuestionSetType(ilObjTest::QUESTION_SET_TYPE_RANDOM);
73  $testObj = new ilTestExportFactory($objTest);
74  $this->assertInstanceOf(ilTestExportRandomQuestionSet::class, $testObj->getExporter());
75  }*/
76 }
Class ilTestExportFactoryTest.
Class ilTestBaseClass.