From d417de70fcf39e0a7a15ba780b597914d16ca0f7 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 12 Mar 2014 18:12:23 +0100 Subject: Update to MediaWiki 1.22.4 --- tests/phpunit/includes/LinkerTest.php | 71 ----------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 tests/phpunit/includes/LinkerTest.php (limited to 'tests/phpunit/includes/LinkerTest.php') diff --git a/tests/phpunit/includes/LinkerTest.php b/tests/phpunit/includes/LinkerTest.php deleted file mode 100644 index b605f08f..00000000 --- a/tests/phpunit/includes/LinkerTest.php +++ /dev/null @@ -1,71 +0,0 @@ -setMwGlobals( array( - 'wgArticlePath' => '/wiki/$1', - 'wgWellFormedXml' => true, - ) ); - - $this->assertEquals( $expected, - Linker::userLink( $userId, $userName, $altUserName, $msg ) - ); - } - - public static function provideCasesForUserLink() { - # Format: - # - expected - # - userid - # - username - # - optional altUserName - # - optional message - return array( - - ### ANONYMOUS USER ######################################## - array( - 'JohnDoe', - 0, 'JohnDoe', false, - ), - array( - '::1', - 0, '::1', false, - 'Anonymous with pretty IPv6' - ), - array( - '::1', - 0, '0:0:0:0:0:0:0:1', false, - 'Anonymous with almost pretty IPv6' - ), - array( - '::1', - 0, '0000:0000:0000:0000:0000:0000:0000:0001', false, - 'Anonymous with full IPv6' - ), - array( - 'AlternativeUsername', - 0, '::1', 'AlternativeUsername', - 'Anonymous with pretty IPv6 and an alternative username' - ), - - # IPV4 - array( - '127.0.0.1', - 0, '127.0.0.1', false, - 'Anonymous with IPv4' - ), - array( - 'AlternativeUsername', - 0, '127.0.0.1', 'AlternativeUsername', - 'Anonymous with IPv4 and an alternative username' - ), - - ### Regular user ########################################## - # TODO! - ); - } -} -- cgit v1.2.2