Changeset 49971
- Timestamp:
- 01/17/2021 05:48:01 PM (4 years ago)
- Location:
- trunk/tests/phpunit/tests/privacy
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php
r49603 r49971 165 165 166 166 $this->expectException( 'WPDieException' ); 167 $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating user privacyexport file."}' );167 $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating personal data export file."}' ); 168 168 wp_privacy_generate_personal_data_export_file( $request_id ); 169 169 } … … 176 176 public function test_invalid_request_id() { 177 177 $this->expectException( 'WPDieException' ); 178 $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating user privacyexport file."}' );178 $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating personal data export file."}' ); 179 179 wp_privacy_generate_personal_data_export_file( 123456789 ); 180 180 } … … 196 196 197 197 $this->expectException( 'WPDieException' ); 198 $this->expectOutputString( '{"success":false,"data":"Invalid email address when generating user privacyexport file."}' );198 $this->expectOutputString( '{"success":false,"data":"Invalid email address when generating personal data export file."}' ); 199 199 wp_privacy_generate_personal_data_export_file( $request_id ); 200 200 } … … 210 210 211 211 $this->expectException( 'WPDieException' ); 212 $this->expectOutputString( '{"success":false,"data":"Unable to create user privacyexport folder."}' );212 $this->expectOutputString( '{"success":false,"data":"Unable to create personal data export folder."}' ); 213 213 wp_privacy_generate_personal_data_export_file( self::$export_request_id ); 214 214 } -
trunk/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php
r49603 r49971 368 368 369 369 // Process data, given the last exporter, on the last page and send as email. 370 $this->_setup_expected_failure( '{"success":false,"data":"Invalid request ID when merging user privacy exporter data."}' );370 $this->_setup_expected_failure( '{"success":false,"data":"Invalid request ID when merging personal data to export."}' ); 371 371 372 372 wp_privacy_process_personal_data_export_page( … … 400 400 401 401 // Process data, given the last exporter, on the last page and send as email. 402 $this->_setup_expected_failure( '{"success":false,"data":"Invalid request ID when merging user privacy exporter data."}' );402 $this->_setup_expected_failure( '{"success":false,"data":"Invalid request ID when merging personal data to export."}' ); 403 403 404 404 wp_privacy_process_personal_data_export_page(
Note: See TracChangeset
for help on using the changeset viewer.