X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FLinkerTest.php;h=3edf99f2e249ef4ac75eaf25cc2e4949d7619791;hb=f4d222850da05826f0c7502a9ff300d525f927dc;hp=b7f78803d6d4de395348bf37efeab9dc0b210218;hpb=f4a2198abf69871a13e401ea2a13e49f597a389b;p=lhc%2Fweb%2Fwiklou.git
diff --git a/tests/phpunit/includes/LinkerTest.php b/tests/phpunit/includes/LinkerTest.php
index b7f78803d6..3edf99f2e2 100644
--- a/tests/phpunit/includes/LinkerTest.php
+++ b/tests/phpunit/includes/LinkerTest.php
@@ -37,34 +37,34 @@ class LinkerTest extends MediaWikiLangTestCase {
[
'JohnDoe',
+ . 'title="Special:Contributions/JohnDoe">JohnDoe',
0, 'JohnDoe', false,
],
[
'::1',
+ . 'title="Special:Contributions/::1">::1',
0, '::1', false,
'Anonymous with pretty IPv6'
],
[
'::1',
+ . 'title="Special:Contributions/0:0:0:0:0:0:0:1">::1',
0, '0:0:0:0:0:0:0:1', false,
'Anonymous with almost pretty IPv6'
],
[
'::1',
+ . 'title="Special:Contributions/0000:0000:0000:0000:0000:0000:0000:0001">::1',
0, '0000:0000:0000:0000:0000:0000:0000:0001', false,
'Anonymous with full IPv6'
],
[
'AlternativeUsername',
+ . 'title="Special:Contributions/::1">AlternativeUsername',
0, '::1', 'AlternativeUsername',
'Anonymous with pretty IPv6 and an alternative username'
],
@@ -73,14 +73,14 @@ class LinkerTest extends MediaWikiLangTestCase {
[
'127.0.0.1',
+ . 'title="Special:Contributions/127.0.0.1">127.0.0.1',
0, '127.0.0.1', false,
'Anonymous with IPv4'
],
[
'AlternativeUsername',
+ . 'title="Special:Contributions/127.0.0.1">AlternativeUsername',
0, '127.0.0.1', 'AlternativeUsername',
'Anonymous with IPv4 and an alternative username'
],
@@ -429,6 +429,7 @@ class LinkerTest extends MediaWikiLangTestCase {
* @covers Linker::getLinkColour
*/
public function testGetLinkColour() {
+ $this->hideDeprecated( 'Linker::getLinkColour' );
$linkCache = MediaWikiServices::getInstance()->getLinkCache();
$foobarTitle = Title::makeTitle( NS_MAIN, 'FooBar' );
$redirectTitle = Title::makeTitle( NS_MAIN, 'Redirect' );