ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\COPage\Test\PC\PCDefinitionTest Class Reference
+ Inheritance diagram for ILIAS\COPage\Test\PC\PCDefinitionTest:
+ Collaboration diagram for ILIAS\COPage\Test\PC\PCDefinitionTest:

Public Member Functions

 testGetPCDefinitionByType ()
 
 testGetPCDefinitionByName ()
 
 testGetPCDefinitionByGUIClassName ()
 
 testIsPCGUIClassName ()
 
 testGetPCEditorInstanceByName ()
 

Additional Inherited Members

- Protected Member Functions inherited from COPageTestBase
 setGlobalVariable (string $name, $value)
 
 setUp ()
 
 getIdGeneratorMock ()
 
 getPCDefinition ()
 
 setPCIdCnt (int $cnt)
 
 getIDManager (\ilPageObject $page)
 
 insertParagraphAt (\ilPageObject $page, string $hier_id, string $text="")
 
 tearDown ()
 
 normalize (string $html)
 
 assertXmlEquals (string $expected_xml_as_string, string $html_xml_string)
 
 getEmptyPageWithDom ()
 
 legacyHtmlToXml (string $content)
 
 getMediaObjectMock ()
 
- Protected Attributes inherited from COPageTestBase
int $pc_cnt
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 28 of file PCDefinitionTest.php.

Member Function Documentation

◆ testGetPCDefinitionByGUIClassName()

ILIAS\COPage\Test\PC\PCDefinitionTest::testGetPCDefinitionByGUIClassName ( )

Definition at line 52 of file PCDefinitionTest.php.

52 : void
53 {
54 $def = $this->getPCDefinition();
55 $pc_def = $def->getPCDefinitionByGUIClassName("ilPCParagraphGUI");
56
57 $this->assertEquals(
58 "par",
59 $pc_def["pc_type"]
60 );
61 }

References COPageTestBase\getPCDefinition().

+ Here is the call graph for this function:

◆ testGetPCDefinitionByName()

ILIAS\COPage\Test\PC\PCDefinitionTest::testGetPCDefinitionByName ( )

Definition at line 41 of file PCDefinitionTest.php.

41 : void
42 {
43 $def = $this->getPCDefinition();
44 $pc_def = $def->getPCDefinitionByName("Paragraph");
45
46 $this->assertEquals(
47 "par",
48 $pc_def["pc_type"]
49 );
50 }

References COPageTestBase\getPCDefinition().

+ Here is the call graph for this function:

◆ testGetPCDefinitionByType()

ILIAS\COPage\Test\PC\PCDefinitionTest::testGetPCDefinitionByType ( )

Definition at line 30 of file PCDefinitionTest.php.

30 : void
31 {
32 $def = $this->getPCDefinition();
33 $pc_def = $def->getPCDefinitionByType("par");
34
35 $this->assertEquals(
36 "Paragraph",
37 $pc_def["name"]
38 );
39 }

References COPageTestBase\getPCDefinition().

+ Here is the call graph for this function:

◆ testGetPCEditorInstanceByName()

ILIAS\COPage\Test\PC\PCDefinitionTest::testGetPCEditorInstanceByName ( )

Definition at line 78 of file PCDefinitionTest.php.

78 : void
79 {
80 $def = $this->getPCDefinition();
81 $pc_ed = $def->getPCEditorInstanceByName("Paragraph");
82
83 $this->assertEquals(
84 "ilPCParagraphEditorGUI",
85 get_class($pc_ed)
86 );
87 }

References COPageTestBase\getPCDefinition().

+ Here is the call graph for this function:

◆ testIsPCGUIClassName()

ILIAS\COPage\Test\PC\PCDefinitionTest::testIsPCGUIClassName ( )

Definition at line 63 of file PCDefinitionTest.php.

63 : void
64 {
65 $def = $this->getPCDefinition();
66
67 $this->assertEquals(
68 true,
69 $def->isPCGUIClassName("ilPCParagraphGUI")
70 );
71
72 $this->assertEquals(
73 false,
74 $def->isPCGUIClassName("xyz")
75 );
76 }

References COPageTestBase\getPCDefinition().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: