From: Chad Horohoe Date: Thu, 28 Aug 2014 18:38:18 +0000 (-0700) Subject: TitleTest: fix minor todo about test naming X-Git-Tag: 1.31.0-rc.0~14244^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=6c50c0cb9eee62d8b1f1f2768773642fb743e9b4;p=lhc%2Fweb%2Fwiklou.git TitleTest: fix minor todo about test naming Change-Id: I1aa29b859cb1dcf0ff3c30c23f5d4c6b412f72f9 --- diff --git a/tests/phpunit/includes/TitleTest.php b/tests/phpunit/includes/TitleTest.php index d0f418b292..b2b0d34bc0 100644 --- a/tests/phpunit/includes/TitleTest.php +++ b/tests/phpunit/includes/TitleTest.php @@ -222,11 +222,10 @@ class TitleTest extends MediaWikiTestCase { } /** - * @dataProvider provideBug31100 + * @dataProvider provideSpecialNamesWithAndWithoutParameter * @covers Title::fixSpecialName - * @todo give this test a real name explaining what is being tested here */ - public function testBug31100FixSpecialName( $text, $expectedParam ) { + public function testFixSpecialNameRetainsParameter( $text, $expectedParam ) { $title = Title::newFromText( $text ); $fixed = $title->fixSpecialName(); $stuff = explode( '/', $fixed->getDBkey(), 2 ); @@ -242,7 +241,7 @@ class TitleTest extends MediaWikiTestCase { ); } - public static function provideBug31100() { + public static function provideSpecialNamesWithAndWithoutParameter() { return array( array( 'Special:Version', null ), array( 'Special:Version/', '' ),