mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-09-01 06:30:24 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user