X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FLinkerTest.php;h=f4844f89bb4ec12f96bc89ffa7933f3e094ddef0;hb=9dcc56b3c9e7a3212d0900ee23808b9402cad952;hp=2ca593522526898175ae55a47f7cf13227db3308;hpb=3431ab6d07a119e928aa1538a49984e790dc6ce7;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/LinkerTest.php b/tests/phpunit/includes/LinkerTest.php index 2ca5935225..f4844f89bb 100644 --- a/tests/phpunit/includes/LinkerTest.php +++ b/tests/phpunit/includes/LinkerTest.php @@ -265,7 +265,6 @@ class LinkerTest extends MediaWikiLangTestCase { * @dataProvider provideCasesForFormatLinksInComment */ public function testFormatLinksInComment( $expected, $input, $wiki ) { - $conf = new SiteConfiguration(); $conf->settings = [ 'wgServer' => [ @@ -307,6 +306,11 @@ class LinkerTest extends MediaWikiLangTestCase { 'foo bar [[Special:BlankPage]]', 'enwiki', ], + [ + 'foo bar Image:Example', + 'foo bar [[Image:Example]]', + 'enwiki', + ], ]; // @codingStandardsIgnoreEnd }