Make WordPress Core


Ignore:
Timestamp:
01/17/2021 05:48:01 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Update unit test files missed in [49970].

See #51849.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php

    r49603 r49971  
    165165
    166166                $this->expectException( 'WPDieException' );
    167                 $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating user privacy export file."}' );
     167                $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating personal data export file."}' );
    168168                wp_privacy_generate_personal_data_export_file( $request_id );
    169169        }
     
    176176        public function test_invalid_request_id() {
    177177                $this->expectException( 'WPDieException' );
    178                 $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating user privacy export file."}' );
     178                $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating personal data export file."}' );
    179179                wp_privacy_generate_personal_data_export_file( 123456789 );
    180180        }
     
    196196
    197197                $this->expectException( 'WPDieException' );
    198                 $this->expectOutputString( '{"success":false,"data":"Invalid email address when generating user privacy export file."}' );
     198                $this->expectOutputString( '{"success":false,"data":"Invalid email address when generating personal data export file."}' );
    199199                wp_privacy_generate_personal_data_export_file( $request_id );
    200200        }
     
    210210
    211211                $this->expectException( 'WPDieException' );
    212                 $this->expectOutputString( '{"success":false,"data":"Unable to create user privacy export folder."}' );
     212                $this->expectOutputString( '{"success":false,"data":"Unable to create personal data export folder."}' );
    213213                wp_privacy_generate_personal_data_export_file( self::$export_request_id );
    214214        }
Note: See TracChangeset for help on using the changeset viewer.