assertEquals('card', $componentName); } public function test_base() { $componentName = syntax_plugin_webcomponent_card::getTag(); $doku_text = '<'. $componentName .' style="width: 18rem;">'.DOKU_LF. '{{:allowclipboardhelper.jpg?30|}}'.DOKU_LF. '=== Teaser Title ==='.DOKU_LF. 'A example taken from [[https://getbootstrap.com/docs/4.3/components/card/#example|the bootstrap quick example]] on how to build a card title in order to make up the bulk of the teaser content.'.DOKU_LF. ''; $info = array(); $instructions = p_get_instructions($doku_text); $xhtml = p_render('xhtml', $instructions, $info); $expected = '
'.DOKU_LF. DOKU_TAB.''.DOKU_LF. DOKU_TAB.'
'.DOKU_LF. DOKU_TAB.DOKU_TAB.'

Teaser Title

'.DOKU_LF. DOKU_TAB.DOKU_TAB.'

A example taken from the bootstrap quick example on how to build a card title in order to make up the bulk of the teaser content.

'.DOKU_LF. DOKU_TAB.'
'.DOKU_LF. '
'.DOKU_LF; $this->assertEquals($expected, $xhtml); } public function test_two_teaser() { $componentName = syntax_plugin_webcomponent_card::getTag(); $doku_text = '<'. $componentName .' style="width: 18rem;">'.DOKU_LF. '{{:allowclipboardhelper.jpg?30|}}'.DOKU_LF. '=== Teaser Title ==='.DOKU_LF. 'A example taken from [[https://getbootstrap.com/docs/4.3/components/card/#example|the bootstrap quick example]] on how to build a card title in order to make up the bulk of the teaser content.'.DOKU_LF. ''.DOKU_LF; $expected = '
'.DOKU_LF. DOKU_TAB.''.DOKU_LF. DOKU_TAB.'
'.DOKU_LF. DOKU_TAB.DOKU_TAB.'

Teaser Title

'.DOKU_LF. DOKU_TAB.DOKU_TAB.'

A example taken from the bootstrap quick example on how to build a card title in order to make up the bulk of the teaser content.

'.DOKU_LF. DOKU_TAB.'
'.DOKU_LF. '
'.DOKU_LF; $instructions = p_get_instructions($doku_text.$doku_text); $xhtml = p_render('xhtml', $instructions, $info); $this->assertEquals($expected.$expected, $xhtml); } }