ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
ilTestExporterTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
25
class
ilTestExporterTest
extends
ilTestBaseTestCase
26
{
27
private
ilTestExporter
$testObj
;
28
29
protected
function
setUp
(): void
30
{
31
parent::setUp();
32
$this->
addGlobal_ilComponentRepository
();
33
$this->
addGlobal_ilCtrl
();
34
35
$this->testObj =
new
ilTestExporter
();
36
}
37
38
public
function
test_instantiateObject_shouldReturnInstance
(): void
39
{
40
$this->assertInstanceOf(ilTestExporter::class, $this->testObj);
41
}
42
43
public
function
testGetValidSchemaVersions
(): void
44
{
45
$expected = [
46
"4.1.0"
=> [
47
"namespace"
=>
"http://www.ilias.de/Modules/Test/htlm/4_1"
,
48
"xsd_file"
=>
"ilias_tst_4_1.xsd"
,
49
"uses_dataset"
=>
false
,
50
"min"
=>
"4.1.0"
,
51
"max"
=>
""
52
]
53
];
54
$this->assertEquals($expected, $this->testObj->getValidSchemaVersions(
"abcd"
));
55
}
56
}
ilTestExporterTest\test_instantiateObject_shouldReturnInstance
test_instantiateObject_shouldReturnInstance()
Definition:
ilTestExporterTest.php:38
ilTestExporterTest\setUp
setUp()
Definition:
ilTestExporterTest.php:29
ilTestExporterTest\$testObj
ilTestExporter $testObj
Definition:
ilTestExporterTest.php:27
ilTestBaseTestCase\addGlobal_ilComponentRepository
addGlobal_ilComponentRepository()
Definition:
ilTestBaseTestCase.php:245
ilTestExporter
Used for container export with tests.
Definition:
class.ilTestExporter.php:30
ilTestExporterTest
Class ilTestExporterTest.
Definition:
ilTestExporterTest.php:25
ilTestBaseTestCase\addGlobal_ilCtrl
addGlobal_ilCtrl()
Definition:
ilTestBaseTestCase.php:180
ilTestBaseTestCase
Class ilTestBaseClass.
Definition:
ilTestBaseTestCase.php:36
ilTestExporterTest\testGetValidSchemaVersions
testGetValidSchemaVersions()
Definition:
ilTestExporterTest.php:43
Modules
Test
test
ilTestExporterTest.php
Generated on Wed Sep 10 2025 14:11:08 for ILIAS by
1.8.13 (using
Doxyfile
)