From a5e333f03cfc662c6e95e81f752595ff1ec3ab8c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 24 May 2021 13:37:56 +0000 Subject: [PATCH] Tests: Rename classes in `phpunit/tests/privacy/` 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], [50456], [50967], [50968]. See #52625. git-svn-id: https://develop.svn.wordpress.org/trunk@50969 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/admin/wpPrivacyRequestsTable.php | 4 ++-- tests/phpunit/tests/privacy/wpCreateUserRequest.php | 4 ++-- .../tests/privacy/wpPrivacyCompletedRequest.php | 4 ++-- .../tests/privacy/wpPrivacyDeleteOldExportFiles.php | 2 +- .../wpPrivacyGeneratePersonalDataExportFile.php | 2 +- .../wpPrivacyGeneratePersonalDataExportGroupHtml.php | 4 ++-- .../privacy/wpPrivacyProcessPersonalDataExportPage.php | 4 ++-- .../wpPrivacySendErasureFulfillmentNotification.php | 4 ++-- .../privacy/wpPrivacySendPersonalDataExportEmail.php | 4 ++-- .../wpPrivacySendRequestConfirmationNotification.php | 10 ++++++---- 10 files changed, 22 insertions(+), 20 deletions(-) diff --git a/tests/phpunit/tests/admin/wpPrivacyRequestsTable.php b/tests/phpunit/tests/admin/wpPrivacyRequestsTable.php index e4823f21db..d854f7b145 100644 --- a/tests/phpunit/tests/admin/wpPrivacyRequestsTable.php +++ b/tests/phpunit/tests/admin/wpPrivacyRequestsTable.php @@ -8,14 +8,14 @@ */ /** - * Tests_Admin_WpPrivacyRequestsTable class. + * Tests_Admin_wpPrivacyRequestsTable class. * * @group admin * @group privacy * * @since 5.1.0 */ -class Tests_Admin_WpPrivacyRequestsTable extends WP_UnitTestCase { +class Tests_Admin_wpPrivacyRequestsTable extends WP_UnitTestCase { /** * Get instance for mocked class. * diff --git a/tests/phpunit/tests/privacy/wpCreateUserRequest.php b/tests/phpunit/tests/privacy/wpCreateUserRequest.php index 93fd1dfa74..9c6d9f3516 100644 --- a/tests/phpunit/tests/privacy/wpCreateUserRequest.php +++ b/tests/phpunit/tests/privacy/wpCreateUserRequest.php @@ -8,14 +8,14 @@ */ /** - * Tests_WpCreateUserRequest class. + * Tests_Privacy_wpCreateUserRequest class. * * @group privacy * @covers ::wp_create_user_request * * @since 5.2.0 */ -class Tests_WpCreateUserRequest extends WP_UnitTestCase { +class Tests_Privacy_wpCreateUserRequest extends WP_UnitTestCase { /** * Request ID. * diff --git a/tests/phpunit/tests/privacy/wpPrivacyCompletedRequest.php b/tests/phpunit/tests/privacy/wpPrivacyCompletedRequest.php index 6455379a4b..eb3ae8a2df 100644 --- a/tests/phpunit/tests/privacy/wpPrivacyCompletedRequest.php +++ b/tests/phpunit/tests/privacy/wpPrivacyCompletedRequest.php @@ -8,14 +8,14 @@ */ /** - * Tests_WpPrivacyCompletedRequest class. + * Tests_Privacy_wpPrivacyCompletedRequest class. * * @group privacy * @covers ::_wp_privacy_completed_request * * @since 4.9.6 */ -class Tests_WpPrivacyCompletedRequest extends WP_UnitTestCase { +class Tests_Privacy_wpPrivacyCompletedRequest extends WP_UnitTestCase { /** * Request ID * diff --git a/tests/phpunit/tests/privacy/wpPrivacyDeleteOldExportFiles.php b/tests/phpunit/tests/privacy/wpPrivacyDeleteOldExportFiles.php index 8b9b5a80fb..e4e3d42066 100644 --- a/tests/phpunit/tests/privacy/wpPrivacyDeleteOldExportFiles.php +++ b/tests/phpunit/tests/privacy/wpPrivacyDeleteOldExportFiles.php @@ -15,7 +15,7 @@ * * @since 4.9.6 */ -class Tests_Privacy_WpPrivacyDeleteOldExportFiles extends WP_UnitTestCase { +class Tests_Privacy_wpPrivacyDeleteOldExportFiles extends WP_UnitTestCase { /** * Path to the index file that blocks directory listing on poorly-configured servers. * diff --git a/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php b/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php index 1b384b4869..e86f9c0253 100644 --- a/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php +++ b/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php @@ -15,7 +15,7 @@ * * @since 5.2.0 */ -class Tests_Privacy_WpPrivacyGeneratePersonalDataExportFile extends WP_UnitTestCase { +class Tests_Privacy_wpPrivacyGeneratePersonalDataExportFile extends WP_UnitTestCase { /** * An Export Request ID * diff --git a/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportGroupHtml.php b/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportGroupHtml.php index de721ab451..badf0ea0d9 100644 --- a/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportGroupHtml.php +++ b/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportGroupHtml.php @@ -8,14 +8,14 @@ */ /** - * Tests_Privacy_WpPrivacyGeneratePersonalDataExportGroupHtml class. + * Tests_Privacy_wpPrivacyGeneratePersonalDataExportGroupHtml class. * * @group privacy * @covers ::wp_privacy_generate_personal_data_export_group_html * * @since 5.2.0 */ -class Tests_Privacy_WpPrivacyGeneratePersonalDataExportGroupHtml extends WP_UnitTestCase { +class Tests_Privacy_wpPrivacyGeneratePersonalDataExportGroupHtml extends WP_UnitTestCase { /** * Test when a single data item is passed. diff --git a/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php b/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php index 78418fc780..367d289773 100644 --- a/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php +++ b/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php @@ -8,14 +8,14 @@ */ /** - * Tests_Privacy_WpPrivacyProcessPersonalDataExportPage class. + * Tests_Privacy_wpPrivacyProcessPersonalDataExportPage class. * * @group privacy * @covers ::wp_privacy_process_personal_data_export_page * * @since 5.2.0 */ -class Tests_Privacy_WpPrivacyProcessPersonalDataExportPage extends WP_UnitTestCase { +class Tests_Privacy_wpPrivacyProcessPersonalDataExportPage extends WP_UnitTestCase { /** * Request ID. * diff --git a/tests/phpunit/tests/privacy/wpPrivacySendErasureFulfillmentNotification.php b/tests/phpunit/tests/privacy/wpPrivacySendErasureFulfillmentNotification.php index 28708ad7c5..17c2fb23d4 100644 --- a/tests/phpunit/tests/privacy/wpPrivacySendErasureFulfillmentNotification.php +++ b/tests/phpunit/tests/privacy/wpPrivacySendErasureFulfillmentNotification.php @@ -8,14 +8,14 @@ */ /** - * Tests_Privacy_WpPrivacySendErasureFulfillmentNotification class. + * Tests_Privacy_wpPrivacySendErasureFulfillmentNotification class. * * @group privacy * @covers ::_wp_privacy_send_erasure_fulfillment_notification * * @since 5.1.0 */ -class Tests_Privacy_WpPrivacySendErasureFulfillmentNotification extends WP_UnitTestCase { +class Tests_Privacy_wpPrivacySendErasureFulfillmentNotification extends WP_UnitTestCase { /** * Request ID. * diff --git a/tests/phpunit/tests/privacy/wpPrivacySendPersonalDataExportEmail.php b/tests/phpunit/tests/privacy/wpPrivacySendPersonalDataExportEmail.php index a2e62908e2..6fc2b7327f 100644 --- a/tests/phpunit/tests/privacy/wpPrivacySendPersonalDataExportEmail.php +++ b/tests/phpunit/tests/privacy/wpPrivacySendPersonalDataExportEmail.php @@ -8,14 +8,14 @@ */ /** - * Tests_Privacy_WpPrivacySendPersonalDataExportEmail class. + * Tests_Privacy_wpPrivacySendPersonalDataExportEmail class. * * @group privacy * @covers ::wp_privacy_send_personal_data_export_email * * @since 4.9.6 */ -class Tests_Privacy_WpPrivacySendPersonalDataExportEmail extends WP_UnitTestCase { +class Tests_Privacy_wpPrivacySendPersonalDataExportEmail extends WP_UnitTestCase { /** * Request ID. * diff --git a/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php b/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php index 5cce5cc02d..81a1e8424e 100644 --- a/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php +++ b/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php @@ -2,19 +2,21 @@ /** * Test cases for the `_wp_privacy_send_request_confirmation_notification()` function. * + * @package WordPress + * @subpackage UnitTests * @since 4.9.8 */ /** - * Tests_User_WpPrivacySendRequestConfirmationNotification class. - * - * @since 4.9.8 + * Tests_Privacy_wpPrivacySendRequestConfirmationNotification class. * * @group privacy * @group user * @covers ::_wp_privacy_send_request_confirmation_notification + * + * @since 4.9.8 */ -class Tests_User_WpPrivacySendRequestConfirmationNotification extends WP_UnitTestCase { +class Tests_Privacy_wpPrivacySendRequestConfirmationNotification extends WP_UnitTestCase { /** * Reset the mocked PHPMailer instance before each test method. *