From 6e982559758e3af640f5919ccfed8accaba52334 Mon Sep 17 00:00:00 2001 From: SergeyBiryukov Date: Sun, 17 Jan 2021 17:48:01 +0000 Subject: [PATCH] Privacy: Update unit test files missed in [49970]. See #51849. git-svn-id: https://develop.svn.wordpress.org/trunk@49971 602fd350-edb4-49c9-b593-d223f7449a82 --- .../privacy/wpPrivacyGeneratePersonalDataExportFile.php | 8 ++++---- .../privacy/wpPrivacyProcessPersonalDataExportPage.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php b/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php index 2aaa0bab02..88544fc460 100644 --- a/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php +++ b/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php @@ -164,7 +164,7 @@ class Tests_Privacy_WpPrivacyGeneratePersonalDataExportFile extends WP_UnitTestC $request_id = wp_create_user_request( 'removal-requester@example.com', 'remove_personal_data' ); $this->expectException( 'WPDieException' ); - $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating user privacy export file."}' ); + $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating personal data export file."}' ); wp_privacy_generate_personal_data_export_file( $request_id ); } @@ -175,7 +175,7 @@ class Tests_Privacy_WpPrivacyGeneratePersonalDataExportFile extends WP_UnitTestC */ public function test_invalid_request_id() { $this->expectException( 'WPDieException' ); - $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating user privacy export file."}' ); + $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating personal data export file."}' ); wp_privacy_generate_personal_data_export_file( 123456789 ); } @@ -195,7 +195,7 @@ class Tests_Privacy_WpPrivacyGeneratePersonalDataExportFile extends WP_UnitTestC ); $this->expectException( 'WPDieException' ); - $this->expectOutputString( '{"success":false,"data":"Invalid email address when generating user privacy export file."}' ); + $this->expectOutputString( '{"success":false,"data":"Invalid email address when generating personal data export file."}' ); wp_privacy_generate_personal_data_export_file( $request_id ); } @@ -209,7 +209,7 @@ class Tests_Privacy_WpPrivacyGeneratePersonalDataExportFile extends WP_UnitTestC touch( untrailingslashit( self::$exports_dir ) ); $this->expectException( 'WPDieException' ); - $this->expectOutputString( '{"success":false,"data":"Unable to create user privacy export folder."}' ); + $this->expectOutputString( '{"success":false,"data":"Unable to create personal data export folder."}' ); wp_privacy_generate_personal_data_export_file( self::$export_request_id ); } diff --git a/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php b/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php index fd20c51de4..78418fc780 100644 --- a/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php +++ b/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php @@ -367,7 +367,7 @@ class Tests_Privacy_WpPrivacyProcessPersonalDataExportPage extends WP_UnitTestCa $invalid_request_id = 0; // Process data, given the last exporter, on the last page and send as email. - $this->_setup_expected_failure( '{"success":false,"data":"Invalid request ID when merging user privacy exporter data."}' ); + $this->_setup_expected_failure( '{"success":false,"data":"Invalid request ID when merging personal data to export."}' ); wp_privacy_process_personal_data_export_page( $response, @@ -399,7 +399,7 @@ class Tests_Privacy_WpPrivacyProcessPersonalDataExportPage extends WP_UnitTestCa $request_id = wp_create_user_request( self::$requester_email, 'remove_personal_data' ); // Process data, given the last exporter, on the last page and send as email. - $this->_setup_expected_failure( '{"success":false,"data":"Invalid request ID when merging user privacy exporter data."}' ); + $this->_setup_expected_failure( '{"success":false,"data":"Invalid request ID when merging personal data to export."}' ); wp_privacy_process_personal_data_export_page( $response,