From 186c984ab60227b093be32c1baba5ea50d0e0357 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sat, 18 Aug 2018 15:51:29 +0200 Subject: [PATCH] tests: Replace Bugddddd with Tddddd in test names, test strings Change-Id: Ic6fbc5e14b1a756f62dd6cc3a6b2acc0d47db498 --- tests/phpunit/includes/BlockTest.php | 8 ++++---- .../phpunit/includes/GlobalFunctions/wfShellExecTest.php | 2 +- tests/phpunit/includes/api/ApiEditPageTest.php | 6 +++--- .../phpunit/includes/specials/SpecialPreferencesTest.php | 2 +- tests/phpunit/includes/upload/UploadStashTest.php | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/phpunit/includes/BlockTest.php b/tests/phpunit/includes/BlockTest.php index 19780a684a..a921ee0e27 100644 --- a/tests/phpunit/includes/BlockTest.php +++ b/tests/phpunit/includes/BlockTest.php @@ -84,7 +84,7 @@ class BlockTest extends MediaWikiLangTestCase { * per T28425 * @covers Block::__construct */ - public function testBug26425BlockTimestampDefaultsToTime() { + public function testT28425BlockTimestampDefaultsToTime() { $user = $this->getUserForBlocking(); $block = $this->addBlockForUser( $user ); $madeAt = wfTimestamp( TS_MW ); @@ -103,10 +103,10 @@ class BlockTest extends MediaWikiLangTestCase { * because the new function didn't accept empty strings like Block::load() * had. Regression T31116. * - * @dataProvider provideBug29116Data + * @dataProvider provideT31116Data * @covers Block::newFromTarget */ - public function testBug29116NewFromTargetWithEmptyIp( $vagueTarget ) { + public function testT31116NewFromTargetWithEmptyIp( $vagueTarget ) { $user = $this->getUserForBlocking(); $initialBlock = $this->addBlockForUser( $user ); $block = Block::newFromTarget( $user->getName(), $vagueTarget ); @@ -118,7 +118,7 @@ class BlockTest extends MediaWikiLangTestCase { ); } - public static function provideBug29116Data() { + public static function provideT31116Data() { return [ [ null ], [ '' ], diff --git a/tests/phpunit/includes/GlobalFunctions/wfShellExecTest.php b/tests/phpunit/includes/GlobalFunctions/wfShellExecTest.php index fcd26f541f..6279cf6eee 100644 --- a/tests/phpunit/includes/GlobalFunctions/wfShellExecTest.php +++ b/tests/phpunit/includes/GlobalFunctions/wfShellExecTest.php @@ -5,7 +5,7 @@ * @covers ::wfShellExec */ class WfShellExecTest extends MediaWikiTestCase { - public function testBug67870() { + public function testT69870() { $command = wfIsWindows() // 333 = 331 + CRLF ? ( 'for /l %i in (1, 1, 1001) do @echo ' . str_repeat( '*', 331 ) ) diff --git a/tests/phpunit/includes/api/ApiEditPageTest.php b/tests/phpunit/includes/api/ApiEditPageTest.php index 4c276d6273..852812bef5 100644 --- a/tests/phpunit/includes/api/ApiEditPageTest.php +++ b/tests/phpunit/includes/api/ApiEditPageTest.php @@ -399,7 +399,7 @@ class ApiEditPageTest extends ApiTestCase { "no edit conflict expected here" ); } - public function testEditConflict_bug41990() { + public function testEditConflict_T43990() { static $count = 0; $count++; @@ -410,11 +410,11 @@ class ApiEditPageTest extends ApiTestCase { */ // assume NS_HELP defaults to wikitext - $name = "Help:ApiEditPageTest_testEditConflict_redirect_bug41990_$count"; + $name = "Help:ApiEditPageTest_testEditConflict_redirect_T43990_$count"; $title = Title::newFromText( $name ); $page = WikiPage::factory( $title ); - $rname = "Help:ApiEditPageTest_testEditConflict_redirect_bug41990_r$count"; + $rname = "Help:ApiEditPageTest_testEditConflict_redirect_T43990_r$count"; $rtitle = Title::newFromText( $rname ); $rpage = WikiPage::factory( $rtitle ); diff --git a/tests/phpunit/includes/specials/SpecialPreferencesTest.php b/tests/phpunit/includes/specials/SpecialPreferencesTest.php index cd6cd3be1f..90f6ad9c84 100644 --- a/tests/phpunit/includes/specials/SpecialPreferencesTest.php +++ b/tests/phpunit/includes/specials/SpecialPreferencesTest.php @@ -21,7 +21,7 @@ class SpecialPreferencesTest extends MediaWikiTestCase { * Test specifications by Alexandre "ialex" Emsenhuber. * @todo give this test a real name explaining what is being tested here */ - public function testBug41337() { + public function testT43337() { // Set a low limit $this->setMwGlobals( 'wgMaxSigChars', 2 ); diff --git a/tests/phpunit/includes/upload/UploadStashTest.php b/tests/phpunit/includes/upload/UploadStashTest.php index 39acbb0740..e7960651cd 100644 --- a/tests/phpunit/includes/upload/UploadStashTest.php +++ b/tests/phpunit/includes/upload/UploadStashTest.php @@ -41,7 +41,7 @@ class UploadStashTest extends MediaWikiTestCase { /** * @todo give this test a real name explaining what is being tested here */ - public function testBug29408() { + public function testT31408() { $this->setMwGlobals( 'wgUser', self::$users['uploader']->getUser() ); $repo = RepoGroup::singleton()->getLocalRepo(); -- 2.20.1