Commit 2194e6c8 authored by Pietro Saccardi's avatar Pietro Saccardi

Testing final render output.

parent aad17f0f
Pipeline #434 passed with stage
in 3 minutes and 10 seconds
......@@ -202,6 +202,13 @@ class general_plugin_ifauthex_test extends DokuWikiTest
auth_expr_parse(str_repeat('(', $depthLimit) . 'a && b' . str_repeat(')', $depthLimit));
}
public function test_output() {
$info = array();
$instructions = p_get_instructions('<ifauth nonexistent>hideme</ifauth><ifauth !nonexistent>showme</ifauth>');
$xhtml = p_render('xhtml', $instructions, $info);
$this->assertTrue(stristr($xhtml, 'showme') !== false);
$this->assertTrue(stristr($xhtml, 'hideme') === false);
}
/**
* Simple test to make sure the plugin.info.txt is in correct format
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment