Move method to its using test class rather then having a public static thing in the...
authorjeroendedauw <jeroendedauw@gmail.com>
Sun, 12 Aug 2012 19:47:06 +0000 (21:47 +0200)
committerjeroendedauw <jeroendedauw@gmail.com>
Sun, 12 Aug 2012 19:47:06 +0000 (21:47 +0200)
Change-Id: Id82225d0fb65dcd30b5724ee4f2d7838dfcb5ea6

tests/phpunit/MediaWikiTestCase.php
tests/phpunit/includes/upload/UploadTest.php

index c96eba0..2eee9f4 100644 (file)
@@ -326,10 +326,6 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase {
 
        }
 
-       public static function disableInterwikis( $prefix, &$data ) {
-               return false;
-       }
-
        /**
         * Don't throw a warning if $function is deprecated and called later
         *
index 4293d23..6948f5b 100644 (file)
@@ -12,7 +12,9 @@ class UploadTest extends MediaWikiTestCase {
 
                $this->upload = new UploadTestHandler;
                $this->hooks = $wgHooks;
-               $wgHooks['InterwikiLoadPrefix'][] = 'MediaWikiTestCase::disableInterwikis';
+               $wgHooks['InterwikiLoadPrefix'][] = function( $prefix, &$data ) {
+                       return false;
+               };
        }
 
        function tearDown() {