ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
ilTestPlayerFactoryTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
25
class
ilTestPlayerFactoryTest
extends
ilTestBaseTestCase
26
{
27
private
ilTestPlayerFactory
$testObj
;
28
29
protected
function
setUp
(): void
30
{
31
parent::setUp();
32
33
$this->testObj =
new
ilTestPlayerFactory
($this->createMock(ilObjTest::class));
34
}
35
36
public
function
test_instantiateObject_shouldReturnInstance
(): void
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
}
ilTestPlayerFactoryTest\test_instantiateObject_shouldReturnInstance
test_instantiateObject_shouldReturnInstance()
Definition:
ilTestPlayerFactoryTest.php:36
ilTestPlayerFactory
Definition:
class.ilTestPlayerFactory.php:29
ilTestPlayerFactoryTest
Class ilTestPlayerFactoryTest.
Definition:
ilTestPlayerFactoryTest.php:25
ilTestPlayerFactoryTest\setUp
setUp()
Definition:
ilTestPlayerFactoryTest.php:29
ilTestPlayerFactoryTest\$testObj
ilTestPlayerFactory $testObj
Definition:
ilTestPlayerFactoryTest.php:27
ilTestBaseTestCase
Class ilTestBaseClass.
Definition:
ilTestBaseTestCase.php:36
Modules
Test
test
ilTestPlayerFactoryTest.php
Generated on Wed Sep 10 2025 14:11:08 for ILIAS by
1.8.13 (using
Doxyfile
)