ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestPlayerFactoryTest.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 ilTestPlayerFactory($this->createMock(ilObjTest::class));
34  }
35 
37  {
38  $this->assertInstanceOf(ilTestPlayerFactory::class, $this->testObj);
39  }
40 
41  /*public function testGetPlayerGUI(): void
42  {
43  $this->addGlobal_ilUser();
44  $this->addGlobal_lng();
45  $this->addGlobal_ilias();
46  $this->addGlobal_ilDB();
47  $this->addGlobal_ilLog();
48  $this->addGlobal_ilErr();
49  $this->addGlobal_tree();
50  $this->addGlobal_ilAppEventHandler();
51  $this->addGlobal_objDefinition();
52  $this->addGlobal_tpl();
53  $this->addGlobal_ilCtrl();
54  $this->addGlobal_ilComponentRepository();
55  $this->addGlobal_ilTabs();
56  $this->addGlobal_ilObjDataCache();
57  $this->addGlobal_rbacsystem();
58  $this->addGlobal_refinery();
59  $this->addGlobal_filesystem();
60 
61  $objTest = new ilObjTest();
62 
63  $objTest->setQuestionSetType(ilObjTest::QUESTION_SET_TYPE_FIXED);
64  $testObj = new ilTestPlayerFactory($objTest);
65  $this->assertInstanceOf(ilTestPlayerFixedQuestionSetGUI::class, $testObj->getPlayerGUI());
66 
67  $objTest->setQuestionSetType(ilObjTest::QUESTION_SET_TYPE_RANDOM);
68  $testObj = new ilTestPlayerFactory($objTest);
69  $this->assertInstanceOf(ilTestPlayerRandomQuestionSetGUI::class, $testObj->getPlayerGUI());
70  }*/
71 }
Class ilTestPlayerFactoryTest.
Class ilTestBaseClass.