1<?php 2 3namespace dokuwiki\plugin\flowchartjs\test; 4use DokuWikiTest; 5 6/** 7 * Render tests for the flowchartjs plugin 8 * 9 * @group plugin_flowchartjs 10 * @group plugins 11 */ 12class plugin_flowchartjs_render_test extends DokuWikiTest { 13 public function test_render(){ 14 // print_r(plugin_list("", true)); 15 global $plugin_controller; $plugin_controller->enable("flowchartjs"); 16 $info = array(); 17 $instructions = p_get_instructions("xxx<flowchartjs>\n _cfg_\n</flowchartjs>\nxxx"); 18 // print_r($instructions); 19 $xhtml = p_render("xhtml", $instructions, $info); 20 // print_r($xhtml); 21 22 $expected = "\n<p>\nxxx\n</p>\n<pre class='flowchartjs '>\n _cfg_\n</pre>\n<p>\nxxx\n</p>\n"; 23 24 $this->assertEquals($expected, $xhtml); 25 } 26} 27//Setup VIM: ex: et ts=4 : 28