Commit 9a7d8d45 authored by Pietro Saccardi's avatar Pietro Saccardi

Added test for empty expression.

parent 531c8b98
......@@ -189,6 +189,10 @@ class general_plugin_ifauthex_test extends DokuWikiTest
$this->assertNotNull(auth_expr_parse('()'));
}
public function test_empty() {
// This must not throw. It's malformed, but it's parsed correctly.
$this->assertNotNull(auth_expr_parse(''));
}
public function test_depth_limit()
......
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