ILIAS
trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
PCContentTemplateTest.php
Go to the documentation of this file.
1
<?php
2
19
use
PHPUnit\Framework\TestCase
;
20
24
class
PCContentTemplateTest
extends
COPageTestBase
25
{
26
public
function
testConstruction
(): void
27
{
28
$page = $this->
getEmptyPageWithDom
();
29
$pc =
new
ilPCContentTemplate
($page);
30
$this->assertEquals(
31
ilPCContentTemplate::class,
32
get_class($pc)
33
);
34
}
35
36
/*
37
public function testCreate(): void
38
{
39
$manager = new ilUnitTestPageManager();
40
$page1 = $this->getEmptyPageWithDom(); // our template
41
$template_xml = <<<EOT
42
<PageObject><PageContent><Table Language="en" DataTable="y">
43
<TableRow>
44
<TableData>
45
<PageContent><Paragraph Language="en" Characteristic="TableContent">one</Paragraph></PageContent>
46
</TableData>
47
<TableData>
48
<PageContent><Paragraph Language="en" Characteristic="TableContent">two</Paragraph></PageContent>
49
</TableData></TableRow></Table></PageContent></PageObject>
50
EOT;
51
$page1->setXMLContent($template_xml);
52
$page1->buildDom(true);
53
54
$page2 = $this->getEmptyPageWithDom(); // our target page
55
$manager->mockGet($page1);
56
57
$temp = new ilPCContentTemplate($page2, $manager);
58
59
$temp->create($page2, "pg", "", "x:1");
60
$page2->stripPCIDs();
61
$page2->stripHierIDs();
62
63
$this->assertXmlEquals(
64
$template_xml,
65
$page2->getXMLFromDom()
66
);
67
}*/
68
}
COPageTestBase
Definition:
COPageTestBase.php:24
PCContentTemplateTest
Definition:
PCContentTemplateTest.php:24
ilPCContentTemplate
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilPCContentTemplate.php:25
PCContentTemplateTest\testConstruction
testConstruction()
Definition:
PCContentTemplateTest.php:26
COPageTestBase\getEmptyPageWithDom
getEmptyPageWithDom()
Definition:
COPageTestBase.php:207
TestCase
components
ILIAS
COPage
tests
PCContentTemplateTest.php
Generated on Mon Apr 7 2025 23:03:13 for ILIAS by
1.8.13 (using
Doxyfile
)