Skip to content
Snippets Groups Projects
Commit 0c313f78 authored by Michael Hamann's avatar Michael Hamann
Browse files

Always load the parser in the test environment

This fixes the problem that $PARSER_MODES was sometimes unset by PHPUnit
between test functions that called p_get_parsermodes() as PHPUnit tried
to restore the global environment. I couldn't reproduce this when I
executed all tests but just when I executed a single plugin test.
parent 1c6c1c6c
No related branches found
No related tags found
No related merge requests found
......@@ -110,3 +110,7 @@ $dh->close();
// load dw
require_once(DOKU_INC.'inc/init.php');
// load the parser so $PARSER_MODES is defined before the tests start
// otherwise PHPUnit unsets $PARSER_MODES in some cases which breaks p_get_parsermodes()
require_once(DOKU_INC.'inc/parser/parser.php');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment