Merge "Clean up parser test's InterwikiLoadPrefix hook"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 26 Aug 2013 16:10:50 +0000 (16:10 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 26 Aug 2013 16:10:50 +0000 (16:10 +0000)
1  2 
tests/parser/parserTest.inc

@@@ -260,7 -260,7 +260,7 @@@ class ParserTest 
                                        'iw_wikiid' => '',
                                        'iw_local' => 1 ),
                        );
 -                      if( array_key_exists( $prefix, $testInterwikis ) ) {
 +                      if ( array_key_exists( $prefix, $testInterwikis ) ) {
                                $iwData = $testInterwikis[$prefix];
                        }
  
                } );// hooks::register
        }
  
+       /**
+        * Remove the hardcoded interwiki lookup table.
+        */
+       public static function tearDownInterwikis() {
+               Hooks::clear( 'InterwikiLoadPrefix' );
+       }
        public function setupRecorder( $options ) {
                if ( isset( $options['record'] ) ) {
                        $this->recorder = new DbTestRecorder( $this );