19 declare(strict_types=1);
32 protected function setUp(): void
34 $language = $this->createMock(ilLanguage::class);
35 $data_factory =
new Data\Factory();
52 Structure::UNORDERED_LIST,
53 Structure::ORDERED_LIST,
56 Structure::BLOCKQUOTE,
65 [
"### Heading 3",
true],
66 [
"> Quote block",
true],
67 [
"",
false]
90 $supported_structure = $this->simple_doc_markdown_shape->getSupportedStructure();
109 $this->assertEquals($expected, $supported_structure);
117 $this->assertEquals($this->simple_doc_markdown_shape->isRawStringCompliant($markdown_string), $compliance);
static stringComplianceDataProvider()
testIsRawStringCompliant(string $markdown_string, bool $compliance)
stringComplianceDataProvider
Interface Observer Contains several chained tasks and infos about them.
static constructDataProvider()
SimpleDocumentMarkdown $simple_doc_markdown_shape
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)
constructDataProvider