try to load hooks before testing them, so we can text Cite (discussion in bug 18890)
authorSteve Sanbeg <sanbeg@users.mediawiki.org>
Tue, 2 Jun 2009 19:13:32 +0000 (19:13 +0000)
committerSteve Sanbeg <sanbeg@users.mediawiki.org>
Tue, 2 Jun 2009 19:13:32 +0000 (19:13 +0000)
maintenance/parserTests.inc

index 4ccc932..77ffaa4 100644 (file)
@@ -1032,6 +1032,7 @@ class ParserTest {
         */
        private function requireHook( $name ) {
                global $wgParser;
+               $wgParser->firstCallInit( ); //make sure hooks are loaded.
                if( isset( $wgParser->mTagHooks[$name] ) ) {
                        $this->hooks[$name] = $wgParser->mTagHooks[$name];
                } else {
@@ -1047,6 +1048,7 @@ class ParserTest {
         */
        private function requireFunctionHook( $name ) {
                global $wgParser;
+               $wgParser->firstCallInit( ); //make sure hooks are loaded.
                if( isset( $wgParser->mFunctionHooks[$name] ) ) {
                        $this->functionHooks[$name] = $wgParser->mFunctionHooks[$name];
                } else {