From 88567c5bae51769d787feccdbc504049bf89433d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 11 Feb 2021 21:20:41 +0000 Subject: [PATCH] Tests: Rename some classes in `phpunit/tests/date/` 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]. See #51802. git-svn-id: https://develop.svn.wordpress.org/trunk@50291 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/date/currentTime.php | 2 +- tests/phpunit/tests/date/dateI18n.php | 2 +- tests/phpunit/tests/date/getCommentDate.php | 2 +- tests/phpunit/tests/date/getFeedBuildDate.php | 2 +- tests/phpunit/tests/date/getPermalink.php | 2 +- tests/phpunit/tests/date/getPostTime.php | 2 +- tests/phpunit/tests/date/getTheDate.php | 2 +- tests/phpunit/tests/date/getTheModifiedDate.php | 2 +- tests/phpunit/tests/date/maybeDeclineDate.php | 2 +- tests/phpunit/tests/date/query.php | 2 +- tests/phpunit/tests/date/theDate.php | 2 +- tests/phpunit/tests/date/wpDate.php | 2 +- tests/phpunit/tests/date/wpTimezone.php | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/phpunit/tests/date/currentTime.php b/tests/phpunit/tests/date/currentTime.php index b3c59ed7db..dd567701f9 100644 --- a/tests/phpunit/tests/date/currentTime.php +++ b/tests/phpunit/tests/date/currentTime.php @@ -5,7 +5,7 @@ * @group datetime * @covers ::current_time */ -class Tests_Date_Current_Time extends WP_UnitTestCase { +class Tests_Date_CurrentTime extends WP_UnitTestCase { /** * @ticket 34378 diff --git a/tests/phpunit/tests/date/dateI18n.php b/tests/phpunit/tests/date/dateI18n.php index f4d833c85f..9279aca4eb 100644 --- a/tests/phpunit/tests/date/dateI18n.php +++ b/tests/phpunit/tests/date/dateI18n.php @@ -5,7 +5,7 @@ * @group datetime * @covers ::date_i18n */ -class Tests_Date_I18n extends WP_UnitTestCase { +class Tests_Date_DateI18n extends WP_UnitTestCase { /** * @ticket 28636 diff --git a/tests/phpunit/tests/date/getCommentDate.php b/tests/phpunit/tests/date/getCommentDate.php index 7dac03d262..20186bc908 100644 --- a/tests/phpunit/tests/date/getCommentDate.php +++ b/tests/phpunit/tests/date/getCommentDate.php @@ -6,7 +6,7 @@ * @group comment * @covers ::get_comment_date */ -class Tests_Date_Get_Comment_Date extends WP_UnitTestCase { +class Tests_Date_GetCommentDate extends WP_UnitTestCase { /** * @ticket 51184 diff --git a/tests/phpunit/tests/date/getFeedBuildDate.php b/tests/phpunit/tests/date/getFeedBuildDate.php index c604285a4b..325fcb423f 100644 --- a/tests/phpunit/tests/date/getFeedBuildDate.php +++ b/tests/phpunit/tests/date/getFeedBuildDate.php @@ -6,7 +6,7 @@ * @group feed * @covers ::get_feed_build_date */ -class Tests_Date_Get_Feed_Build_Date extends WP_UnitTestCase { +class Tests_Date_GetFeedBuildDate extends WP_UnitTestCase { function tearDown() { global $wp_query; diff --git a/tests/phpunit/tests/date/getPermalink.php b/tests/phpunit/tests/date/getPermalink.php index 5ffd902608..0f7526bea2 100644 --- a/tests/phpunit/tests/date/getPermalink.php +++ b/tests/phpunit/tests/date/getPermalink.php @@ -6,7 +6,7 @@ * @group post * @covers ::get_permalink */ -class Tests_Date_Get_Permalink extends WP_UnitTestCase { +class Tests_Date_GetPermalink extends WP_UnitTestCase { function tearDown() { delete_option( 'permalink_structure' ); diff --git a/tests/phpunit/tests/date/getPostTime.php b/tests/phpunit/tests/date/getPostTime.php index 0322cdca4d..ad9eb0cf31 100644 --- a/tests/phpunit/tests/date/getPostTime.php +++ b/tests/phpunit/tests/date/getPostTime.php @@ -7,7 +7,7 @@ * @covers ::get_post_time * @covers ::get_post_modified_time */ -class Tests_Date_Get_Post_Time extends WP_UnitTestCase { +class Tests_Date_GetPostTime extends WP_UnitTestCase { /** * @ticket 28310 diff --git a/tests/phpunit/tests/date/getTheDate.php b/tests/phpunit/tests/date/getTheDate.php index 70f85d6022..18df7b8915 100644 --- a/tests/phpunit/tests/date/getTheDate.php +++ b/tests/phpunit/tests/date/getTheDate.php @@ -6,7 +6,7 @@ * @group post * @covers ::get_the_date */ -class Tests_Date_Get_The_Date extends WP_UnitTestCase { +class Tests_Date_GetTheDate extends WP_UnitTestCase { /** * @ticket 13771 diff --git a/tests/phpunit/tests/date/getTheModifiedDate.php b/tests/phpunit/tests/date/getTheModifiedDate.php index 3e556527c4..9b0dad77cf 100644 --- a/tests/phpunit/tests/date/getTheModifiedDate.php +++ b/tests/phpunit/tests/date/getTheModifiedDate.php @@ -6,7 +6,7 @@ * @group post * @covers ::get_the_modified_date */ -class Tests_Date_Get_The_Modified_Date extends WP_UnitTestCase { +class Tests_Date_GetTheModifiedDate extends WP_UnitTestCase { /** * Test get_the_modified_time with post_id parameter. diff --git a/tests/phpunit/tests/date/maybeDeclineDate.php b/tests/phpunit/tests/date/maybeDeclineDate.php index eadaa03485..0fc80c53e6 100644 --- a/tests/phpunit/tests/date/maybeDeclineDate.php +++ b/tests/phpunit/tests/date/maybeDeclineDate.php @@ -6,7 +6,7 @@ * @group datetime * @covers ::wp_maybe_decline_date */ -class Tests_Functions_MaybeDeclineDate extends WP_UnitTestCase { +class Tests_Date_MaybeDeclineDate extends WP_UnitTestCase { /** * @var string diff --git a/tests/phpunit/tests/date/query.php b/tests/phpunit/tests/date/query.php index 15f0133a2b..87cb8b7632 100644 --- a/tests/phpunit/tests/date/query.php +++ b/tests/phpunit/tests/date/query.php @@ -9,7 +9,7 @@ * @group date * @covers WP_Date_Query */ -class Tests_WP_Date_Query extends WP_UnitTestCase { +class Tests_Date_Query extends WP_UnitTestCase { /** * @var WP_Date_Query $q */ diff --git a/tests/phpunit/tests/date/theDate.php b/tests/phpunit/tests/date/theDate.php index 1fc5dffd95..f0d93f9f75 100644 --- a/tests/phpunit/tests/date/theDate.php +++ b/tests/phpunit/tests/date/theDate.php @@ -7,7 +7,7 @@ * @covers ::the_date * @covers ::the_weekday_date */ -class Tests_Date_The_Date extends WP_UnitTestCase { +class Tests_Date_TheDate extends WP_UnitTestCase { /** @var array $hooks_called Count of hooks called. */ protected $hooks_called = array( diff --git a/tests/phpunit/tests/date/wpDate.php b/tests/phpunit/tests/date/wpDate.php index 3c7fb46611..fa09858d9f 100644 --- a/tests/phpunit/tests/date/wpDate.php +++ b/tests/phpunit/tests/date/wpDate.php @@ -5,7 +5,7 @@ * @group datetime * @covers ::wp_date */ -class Tests_Date_WP_Date extends WP_UnitTestCase { +class Tests_Date_wpDate extends WP_UnitTestCase { /** @var WP_Locale */ private $wp_locale_original; diff --git a/tests/phpunit/tests/date/wpTimezone.php b/tests/phpunit/tests/date/wpTimezone.php index 8edf0b9730..8b1f09e4d1 100644 --- a/tests/phpunit/tests/date/wpTimezone.php +++ b/tests/phpunit/tests/date/wpTimezone.php @@ -6,7 +6,7 @@ * @covers ::wp_timezone_string * @covers ::wp_timezone */ -class Tests_Date_WP_Timezone extends WP_UnitTestCase { +class Tests_Date_wpTimezone extends WP_UnitTestCase { /** * @ticket 24730