Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #44233, comment 9


Ignore:
Timestamp:
07/04/2018 01:25:09 PM (6 years ago)
Author:
birgire
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44233, comment 9

    initial v1  
    1 It's not easy to test {{{wp_privacy_generate_personal_data_export_file()}}}, so thumbs up 👍 to @allendav.
     1It's not easy to test {{{wp_privacy_generate_personal_data_export_file()}}}, so thumbs up to @allendav.
    22
    33I tested {{{Tests_Privacy_wpPrivacyGeneratePersonalDataExportFile}}} successfully, but noticed that it left behind some files and a subdirectory, in the privacy export directory.
     
    1111- Adds extra checks to skip tests.
    1212- Makes sure all test files/directories are removed, before and after each test run.
     13- Uses the static {{{$exports_dir}}} to store the privacy export directory path.
    1314- Simplifies the name of the test methods, use {{{"test_function_..."}}} instead of {{{"test_wp_privacy_generate_personal_data_export_file_..."}}}.