mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Privacy: Improve clarity of privacy error strings.
Primarily this adds "user privacy" to the strings for privacy requests, so they are more easily distinguished from other system actions within logs. Props garrett-eclipse, carike, birgire. Fixes #51351. git-svn-id: https://develop.svn.wordpress.org/trunk@49090 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 export file."}' );
|
||||
$this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating user privacy 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 export file."}' );
|
||||
$this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating user privacy 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 export file."}' );
|
||||
$this->expectOutputString( '{"success":false,"data":"Invalid email address when generating user privacy 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 export folder."}' );
|
||||
$this->expectOutputString( '{"success":false,"data":"Unable to create user privacy export folder."}' );
|
||||
wp_privacy_generate_personal_data_export_file( self::$export_request_id );
|
||||
}
|
||||
|
||||
|
||||
@@ -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 exporter data."}' );
|
||||
$this->_setup_expected_failure( '{"success":false,"data":"Invalid request ID when merging user privacy exporter data."}' );
|
||||
|
||||
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 exporter data."}' );
|
||||
$this->_setup_expected_failure( '{"success":false,"data":"Invalid request ID when merging user privacy exporter data."}' );
|
||||
|
||||
wp_privacy_process_personal_data_export_page(
|
||||
$response,
|
||||
|
||||
Reference in New Issue
Block a user