Make WordPress Core

Changeset 49971


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

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

See #51849.

Location:
trunk/tests/phpunit/tests/privacy
Files:
2 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    }
  • trunk/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php

    r49603 r49971  
    368368
    369369        // 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."}' );
    371371
    372372        wp_privacy_process_personal_data_export_page(
     
    400400
    401401        // 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."}' );
    403403
    404404        wp_privacy_process_personal_data_export_page(
Note: See TracChangeset for help on using the changeset viewer.