- Timestamp:
- 09/18/2020 01:22:22 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php
r48236 r48996 164 164 $request_id = wp_create_user_request( 'removal-requester@example.com', 'remove_personal_data' ); 165 165 166 $this-> setExpectedException( 'WPDieException' );166 $this->expectException( 'WPDieException' ); 167 167 $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating export file."}' ); 168 168 wp_privacy_generate_personal_data_export_file( $request_id ); … … 175 175 */ 176 176 public function test_invalid_request_id() { 177 $this-> setExpectedException( 'WPDieException' );177 $this->expectException( 'WPDieException' ); 178 178 $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating export file."}' ); 179 179 wp_privacy_generate_personal_data_export_file( 123456789 ); … … 195 195 ); 196 196 197 $this-> setExpectedException( 'WPDieException' );197 $this->expectException( 'WPDieException' ); 198 198 $this->expectOutputString( '{"success":false,"data":"Invalid email address when generating export file."}' ); 199 199 wp_privacy_generate_personal_data_export_file( $request_id ); … … 209 209 touch( untrailingslashit( self::$exports_dir ) ); 210 210 211 $this-> setExpectedException( 'WPDieException' );211 $this->expectException( 'WPDieException' ); 212 212 $this->expectOutputString( '{"success":false,"data":"Unable to create export folder."}' ); 213 213 wp_privacy_generate_personal_data_export_file( self::$export_request_id );
Note: See TracChangeset
for help on using the changeset viewer.