|
| testGetSupportedStructure (Structure $dp_bold, Structure $dp_italic, Structure $dp_heading_1, Structure $dp_heading_2, Structure $dp_heading_3, Structure $dp_heading_4, Structure $dp_heading_5, Structure $dp_heading_6, Structure $dp_unordered_list, Structure $dp_ordered_list, Structure $dp_paragraph, Structure $dp_link, Structure $dp_blockquote, Structure $dp_code) |
|
| testIsRawStringCompliant (string $markdown_string, bool $compliance) |
|
◆ constructDataProvider()
static SimpleDocumentMarkdownShapeTest::constructDataProvider |
( |
| ) |
|
|
static |
Definition at line 40 of file SimpleDocumentMarkdownShapeTest.php.
40 : array
41 {
42 return [
43 [
44 Structure::BOLD,
45 Structure::ITALIC,
46 Structure::HEADING_1,
47 Structure::HEADING_2,
48 Structure::HEADING_3,
49 Structure::HEADING_4,
50 Structure::HEADING_5,
51 Structure::HEADING_6,
52 Structure::UNORDERED_LIST,
53 Structure::ORDERED_LIST,
54 Structure::PARAGRAPH,
55 Structure::LINK,
56 Structure::BLOCKQUOTE,
58 ]
59 ];
60 }
References ILIAS\Data\Text\CODE.
◆ setUp()
SimpleDocumentMarkdownShapeTest::setUp |
( |
| ) |
|
|
protected |
◆ stringComplianceDataProvider()
static SimpleDocumentMarkdownShapeTest::stringComplianceDataProvider |
( |
| ) |
|
|
static |
Definition at line 62 of file SimpleDocumentMarkdownShapeTest.php.
62 : array
63 {
64 return [
65 ["### Heading 3", true],
66 ["> Quote block", true],
67 ["", false]
68 ];
69 }
◆ testGetSupportedStructure()
SimpleDocumentMarkdownShapeTest::testGetSupportedStructure |
( |
Structure |
$dp_bold, |
|
|
Structure |
$dp_italic, |
|
|
Structure |
$dp_heading_1, |
|
|
Structure |
$dp_heading_2, |
|
|
Structure |
$dp_heading_3, |
|
|
Structure |
$dp_heading_4, |
|
|
Structure |
$dp_heading_5, |
|
|
Structure |
$dp_heading_6, |
|
|
Structure |
$dp_unordered_list, |
|
|
Structure |
$dp_ordered_list, |
|
|
Structure |
$dp_paragraph, |
|
|
Structure |
$dp_link, |
|
|
Structure |
$dp_blockquote, |
|
|
Structure |
$dp_code |
|
) |
| |
Definition at line 72 of file SimpleDocumentMarkdownShapeTest.php.
87 : void {
88 $supported_structure = $this->simple_doc_markdown_shape->getSupportedStructure();
89
90 $expected = [
91 $dp_bold,
92 $dp_italic,
93 $dp_heading_1,
94 $dp_heading_2,
95 $dp_heading_3,
96 $dp_heading_4,
97 $dp_heading_5,
98 $dp_heading_6,
99 $dp_unordered_list,
100 $dp_ordered_list,
101 $dp_paragraph,
102 $dp_link,
103 $dp_blockquote,
104 $dp_code
105 ];
106
107 $this->assertEquals($expected, $supported_structure);
108 }
◆ testIsRawStringCompliant()
SimpleDocumentMarkdownShapeTest::testIsRawStringCompliant |
( |
string |
$markdown_string, |
|
|
bool |
$compliance |
|
) |
| |
Definition at line 111 of file SimpleDocumentMarkdownShapeTest.php.
111 : void
112 {
113 $this->assertEquals($this->simple_doc_markdown_shape->isRawStringCompliant($markdown_string), $compliance);
114 }
◆ $simple_doc_markdown_shape
The documentation for this class was generated from the following file: