File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
tests/phpunit/tests/filesystem Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,13 @@ public function test_should_apply_pre_unzip_file_filters() {
4141
4242 // Prepare test environment.
4343 $ unzip_destination = self ::$ test_data_dir . 'archive/ ' ;
44+ $ this ->cleanup_unzip_destination ( $ unzip_destination ); // See #65443 for details.
4445 mkdir ( $ unzip_destination );
4546
4647 _unzip_file_pclzip ( self ::$ test_data_dir . 'archive.zip ' , $ unzip_destination );
4748
4849 // Cleanup test environment.
49- $ this ->rmdir ( $ unzip_destination );
50- $ this ->delete_folders ( $ unzip_destination );
50+ $ this ->cleanup_unzip_destination ( $ unzip_destination );
5151
5252 $ this ->assertSame ( 1 , $ filter ->get_call_count () );
5353 }
@@ -63,7 +63,7 @@ public function test_should_apply_unzip_file_filters() {
6363
6464 // Prepare test environment.
6565 $ unzip_destination = self ::$ test_data_dir . 'archive/ ' ;
66- $ this ->cleanup_unzip_destination ( $ unzip_destination ); // See #65443 for details
66+ $ this ->cleanup_unzip_destination ( $ unzip_destination ); // See #65443 for details.
6767 mkdir ( $ unzip_destination );
6868
6969 _unzip_file_pclzip ( self ::$ test_data_dir . 'archive.zip ' , $ unzip_destination );
Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ public function test_should_apply_pre_unzip_file_filters() {
4545
4646 // Prepare test environment.
4747 $ unzip_destination = self ::$ test_data_dir . 'archive/ ' ;
48+ $ this ->cleanup_unzip_destination ( $ unzip_destination ); // See #65443 for details.
4849 mkdir ( $ unzip_destination );
4950
5051 _unzip_file_ziparchive ( self ::$ test_data_dir . 'archive.zip ' , $ unzip_destination );
5152
5253 // Cleanup test environment.
53- $ this ->rmdir ( $ unzip_destination );
54- $ this ->delete_folders ( $ unzip_destination );
54+ $ this ->cleanup_unzip_destination ( $ unzip_destination );
5555
5656 $ this ->assertSame ( 1 , $ filter ->get_call_count () );
5757 }
You can’t perform that action at this time.
0 commit comments