Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #63443, comment 2


Ignore:
Timestamp:
05/14/2025 03:19:25 AM (6 months ago)
Author:
aslamdoctor
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63443, comment 2

    initial v1  
    441. Manually create "archive" directory under `/tests/phpunit/data/filesystem`
    552. Update the code in both files where it says `$this->assertSame( 1, $filter->get_call_count() );` to `$this->assertSame( 2, $filter->get_call_count() );`. By doing this, it will intentionally fail the test.
     63. Now run both tests one by one :
     7
     8
     9{{{
     10npm run test:php -- --filter=Tests_Filesystem_UnzipFilePclzip::test_should_apply_unzip_file_filters
     11npm run test:php -- --filter=Tests_Filesystem_UnzipFileZiparchive::test_should_apply_unzip_file_filters
     12}}}
     13
     14
     15
    6163. Now check the "archive" directory is still there under `/tests/phpunit/data/filesystem`.
    7174. It should be removed in any case whether the test fails or passes.