assertEquals($tags, $componentNames); } public function test_base() { $componentName = syntax_plugin_webcomponent_cardcolumns::getTags()[0]; $doku_text = '<'. $componentName .'>'.DOKU_LF. '<'.syntax_plugin_webcomponent_card::getTag().' style="width: 18rem;">'.DOKU_LF. '===== Title ====='.DOKU_LF. 'Teaser Text'.DOKU_LF. ''.DOKU_LF. ''; $info = array(); $instructions = p_get_instructions($doku_text); $xhtml = p_render('xhtml', $instructions, $info); $expected = '
'.DOKU_LF. '
'.DOKU_LF. DOKU_TAB.'
'.DOKU_LF. DOKU_TAB.DOKU_TAB.'

Title

'.DOKU_LF. DOKU_TAB.DOKU_TAB.'

Teaser Text

'.DOKU_LF. DOKU_TAB.'
'.DOKU_LF. '
'.DOKU_LF. '
'.DOKU_LF; $this->assertEquals($expected, $xhtml); } }