LinkerTest: Fix passing test description to $this->assertEquals()
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 17 May 2016 20:19:37 +0000 (13:19 -0700)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 17 May 2016 20:30:02 +0000 (20:30 +0000)
It was being passed to Linker::userLink() by accident.

Change-Id: I13ba5014193e91a467511259a0c7c1659d8bc0e6

tests/phpunit/includes/LinkerTest.php

index 6edf034..1bf8729 100644 (file)
@@ -15,8 +15,10 @@ class LinkerTest extends MediaWikiLangTestCase {
                        'wgArticlePath' => '/wiki/$1',
                ] );
 
-               $this->assertEquals( $expected,
-                       Linker::userLink( $userId, $userName, $altUserName, $msg )
+               $this->assertEquals(
+                       $expected,
+                       Linker::userLink( $userId, $userName, $altUserName ),
+                       $msg
                );
        }