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,