From: Thalia Date: Mon, 27 May 2019 12:35:18 +0000 (+0100) Subject: Replace old URLs in SampleTest X-Git-Tag: 1.34.0-rc.0~1094^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=ff168c8cd7aab17576aff2437b4b5f75a64fe864;p=lhc%2Fweb%2Fwiklou.git Replace old URLs in SampleTest Update URLs to point to documentation for version 6.5, and fix a couple of broken URLs. Change-Id: I25211d4da19a40837d7fb7fc6219486f1a7a7c0e --- diff --git a/tests/phpunit/includes/SampleTest.php b/tests/phpunit/includes/SampleTest.php index da6df70e69..2d8579fa96 100644 --- a/tests/phpunit/includes/SampleTest.php +++ b/tests/phpunit/includes/SampleTest.php @@ -31,10 +31,8 @@ class SampleTest extends MediaWikiLangTestCase { /** * Name tests so that PHPUnit can turn them into sentences when - * they run. While MediaWiki isn't strictly an Agile Programming - * project, you are encouraged to use the naming described under - * "Agile Documentation" at - * https://www.phpunit.de/manual/3.4/en/other-uses-for-tests.html + * they run. You are encouraged to use the naming described at: + * https://phpunit.de/manual/6.5/en/other-uses-for-tests.html */ public function testTitleObjectStringConversion() { $title = Title::newFromText( "text" ); @@ -47,7 +45,7 @@ class SampleTest extends MediaWikiLangTestCase { /** * If you want to run the same test with a variety of data, use a data provider. - * see: https://www.phpunit.de/manual/3.4/en/writing-tests-for-phpunit.html + * See https://phpunit.de/manual/6.5/en/writing-tests-for-phpunit.html */ public static function provideTitles() { return [ @@ -62,7 +60,7 @@ class SampleTest extends MediaWikiLangTestCase { /** * phpcs:disable Generic.Files.LineLength * @dataProvider provideTitles - * See https://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.dataProvider + * See https://phpunit.de/manual/6.5/en/appendixes.annotations.html#appendixes.annotations.dataProvider * phpcs:enable */ public function testCreateBasicListOfTitles( $titleName, $ns, $text ) { @@ -91,7 +89,7 @@ class SampleTest extends MediaWikiLangTestCase { /** * @depends testSetUpMainPageTitleForNextTest - * See https://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.depends + * See https://phpunit.de/manual/6.5/en/appendixes.annotations.html#appendixes.annotations.depends */ public function testCheckMainPageTitleIsConsideredLocal( $title ) { $this->assertTrue( $title->isLocal() ); @@ -99,7 +97,7 @@ class SampleTest extends MediaWikiLangTestCase { /** * @expectedException InvalidArgumentException - * See https://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.expectedException + * See https://phpunit.de/manual/6.5/en/appendixes.annotations.html#appendixes.annotations.expectedException */ public function testTitleObjectFromObject() { $title = Title::newFromText( Title::newFromText( "test" ) );