ILIAS  trunk Revision v11.0_alpha-2658-ge2404539063
PHPUnit\Framework\Attributes\Test\PC\PCDefinitionTest Class Reference
+ Inheritance diagram for PHPUnit\Framework\Attributes\Test\PC\PCDefinitionTest:
+ Collaboration diagram for PHPUnit\Framework\Attributes\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()

PHPUnit\Framework\Attributes\Test\PC\PCDefinitionTest::testGetPCDefinitionByGUIClassName ( )

Definition at line 52 of file PCDefinitionTest.php.

References COPageTestBase\getPCDefinition().

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  }
+ Here is the call graph for this function:

◆ testGetPCDefinitionByName()

PHPUnit\Framework\Attributes\Test\PC\PCDefinitionTest::testGetPCDefinitionByName ( )

Definition at line 41 of file PCDefinitionTest.php.

References COPageTestBase\getPCDefinition().

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  }
+ Here is the call graph for this function:

◆ testGetPCDefinitionByType()

PHPUnit\Framework\Attributes\Test\PC\PCDefinitionTest::testGetPCDefinitionByType ( )

Definition at line 30 of file PCDefinitionTest.php.

References COPageTestBase\getPCDefinition().

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  }
+ Here is the call graph for this function:

◆ testGetPCEditorInstanceByName()

PHPUnit\Framework\Attributes\Test\PC\PCDefinitionTest::testGetPCEditorInstanceByName ( )

Definition at line 78 of file PCDefinitionTest.php.

References COPageTestBase\getPCDefinition().

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  }
+ Here is the call graph for this function:

◆ testIsPCGUIClassName()

PHPUnit\Framework\Attributes\Test\PC\PCDefinitionTest::testIsPCGUIClassName ( )

Definition at line 63 of file PCDefinitionTest.php.

References COPageTestBase\getPCDefinition().

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  }
+ Here is the call graph for this function:

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