From f0ba66d324b66d843353a7106c32c2bf8c85b1c0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 28 Feb 2021 17:22:27 +0000 Subject: [PATCH] Tests: Rename classes in `phpunit/tests/l10n/` 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], [50452], [50453]. See #52625. git-svn-id: https://develop.svn.wordpress.org/trunk@50456 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/l10n/getUserLocale.php | 2 +- tests/phpunit/tests/l10n/loadScriptTextdomain.php | 2 +- tests/phpunit/tests/l10n/loadTextdomain.php | 2 +- tests/phpunit/tests/l10n/loadTextdomainJustInTime.php | 2 +- .../tests/l10n/{localeSwitcher.php => wpLocaleSwitcher.php} | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename tests/phpunit/tests/l10n/{localeSwitcher.php => wpLocaleSwitcher.php} (99%) diff --git a/tests/phpunit/tests/l10n/getUserLocale.php b/tests/phpunit/tests/l10n/getUserLocale.php index 0ecc69bf60..814a82ce2e 100644 --- a/tests/phpunit/tests/l10n/getUserLocale.php +++ b/tests/phpunit/tests/l10n/getUserLocale.php @@ -4,7 +4,7 @@ * @group l10n * @group i18n */ -class Tests_Get_User_Locale extends WP_UnitTestCase { +class Tests_L10n_GetUserLocale extends WP_UnitTestCase { protected $user_id; public function setUp() { diff --git a/tests/phpunit/tests/l10n/loadScriptTextdomain.php b/tests/phpunit/tests/l10n/loadScriptTextdomain.php index 457f529c61..b9b6ef0c3f 100644 --- a/tests/phpunit/tests/l10n/loadScriptTextdomain.php +++ b/tests/phpunit/tests/l10n/loadScriptTextdomain.php @@ -4,7 +4,7 @@ * @group l10n * @group i18n */ -class Tests_L10n_loadScriptTextdomain extends WP_UnitTestCase { +class Tests_L10n_LoadScriptTextdomain extends WP_UnitTestCase { /** * @ticket 45528 diff --git a/tests/phpunit/tests/l10n/loadTextdomain.php b/tests/phpunit/tests/l10n/loadTextdomain.php index ee3c449668..08be6b7cf7 100644 --- a/tests/phpunit/tests/l10n/loadTextdomain.php +++ b/tests/phpunit/tests/l10n/loadTextdomain.php @@ -4,7 +4,7 @@ * @group l10n * @group i18n */ -class Tests_L10n_loadTextdomain extends WP_UnitTestCase { +class Tests_L10n_LoadTextdomain extends WP_UnitTestCase { protected $locale; protected static $user_id; diff --git a/tests/phpunit/tests/l10n/loadTextdomainJustInTime.php b/tests/phpunit/tests/l10n/loadTextdomainJustInTime.php index fa3e1589a1..42f8e7ea4d 100644 --- a/tests/phpunit/tests/l10n/loadTextdomainJustInTime.php +++ b/tests/phpunit/tests/l10n/loadTextdomainJustInTime.php @@ -4,7 +4,7 @@ * @group l10n * @group i18n */ -class Tests_L10n_loadTextdomainJustInTime extends WP_UnitTestCase { +class Tests_L10n_LoadTextdomainJustInTime extends WP_UnitTestCase { protected $orig_theme_dir; protected $theme_root; protected static $user_id; diff --git a/tests/phpunit/tests/l10n/localeSwitcher.php b/tests/phpunit/tests/l10n/wpLocaleSwitcher.php similarity index 99% rename from tests/phpunit/tests/l10n/localeSwitcher.php rename to tests/phpunit/tests/l10n/wpLocaleSwitcher.php index bb0324b749..029bb2bc82 100644 --- a/tests/phpunit/tests/l10n/localeSwitcher.php +++ b/tests/phpunit/tests/l10n/wpLocaleSwitcher.php @@ -5,7 +5,7 @@ * @group i18n * @ticket 26511 */ -class Tests_Locale_Switcher extends WP_UnitTestCase { +class Tests_L10n_wpLocaleSwitcher extends WP_UnitTestCase { /** * @var string */