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
This commit is contained in:
SergeyBiryukov
2021-01-17 17:48:01 +00:00
parent fdd9fa6107
commit 6e98255975
2 changed files with 6 additions and 6 deletions

View File

@@ -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 );
}

View File

@@ -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,