From 29fef12e78bf1c12be44d0f67667fbc892f77c61 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 28 Feb 2021 13:39:07 +0000 Subject: [PATCH] Tests: Rename some classes in `phpunit/tests/link/` per the naming conventions. https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/#naming-and-organization Follow-up to [47780], [48911], [49327], [50291], [50292], [50342]. See #52625. git-svn-id: https://develop.svn.wordpress.org/trunk@50452 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/link/adminUrl.php | 2 +- tests/phpunit/tests/link/themeFile.php | 2 +- .../tests/link/{wpGetCanonicalURL.php => wpGetCanonicalUrl.php} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename tests/phpunit/tests/link/{wpGetCanonicalURL.php => wpGetCanonicalUrl.php} (98%) diff --git a/tests/phpunit/tests/link/adminUrl.php b/tests/phpunit/tests/link/adminUrl.php index 3b50d84d89..835a8b7e61 100644 --- a/tests/phpunit/tests/link/adminUrl.php +++ b/tests/phpunit/tests/link/adminUrl.php @@ -3,7 +3,7 @@ /** * @group link */ -class Tests_Link_Admin extends WP_UnitTestCase { +class Tests_Link_AdminUrl extends WP_UnitTestCase { /** * @ticket 37446 diff --git a/tests/phpunit/tests/link/themeFile.php b/tests/phpunit/tests/link/themeFile.php index 3e00780a64..c36ae20934 100644 --- a/tests/phpunit/tests/link/themeFile.php +++ b/tests/phpunit/tests/link/themeFile.php @@ -2,7 +2,7 @@ /** * @group link */ -class Test_Theme_File extends WP_UnitTestCase { +class Tests_Link_ThemeFile extends WP_UnitTestCase { public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { $themes = array( diff --git a/tests/phpunit/tests/link/wpGetCanonicalURL.php b/tests/phpunit/tests/link/wpGetCanonicalUrl.php similarity index 98% rename from tests/phpunit/tests/link/wpGetCanonicalURL.php rename to tests/phpunit/tests/link/wpGetCanonicalUrl.php index 24f4999d08..5b7eddaada 100644 --- a/tests/phpunit/tests/link/wpGetCanonicalURL.php +++ b/tests/phpunit/tests/link/wpGetCanonicalUrl.php @@ -5,7 +5,7 @@ * @group canonical * @covers ::wp_get_canonical_url */ -class Tests_WpGetCanonicalURL extends WP_UnitTestCase { +class Tests_Link_wpGetCanonicalUrl extends WP_UnitTestCase { public static $post_id; public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {