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

Added test for empty expression.

parent 531c8b98
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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()