File tree 2 files changed +5
-5
lines changed
tests/phpunit/tests/filesystem
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() {
41
41
42
42
// Prepare test environment.
43
43
$ unzip_destination = self ::$ test_data_dir . 'archive/ ' ;
44
+ $ this ->cleanup_unzip_destination ( $ unzip_destination ); // See #65443 for details.
44
45
mkdir ( $ unzip_destination );
45
46
46
47
_unzip_file_pclzip ( self ::$ test_data_dir . 'archive.zip ' , $ unzip_destination );
47
48
48
49
// Cleanup test environment.
49
- $ this ->rmdir ( $ unzip_destination );
50
- $ this ->delete_folders ( $ unzip_destination );
50
+ $ this ->cleanup_unzip_destination ( $ unzip_destination );
51
51
52
52
$ this ->assertSame ( 1 , $ filter ->get_call_count () );
53
53
}
@@ -63,7 +63,7 @@ public function test_should_apply_unzip_file_filters() {
63
63
64
64
// Prepare test environment.
65
65
$ 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.
67
67
mkdir ( $ unzip_destination );
68
68
69
69
_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() {
45
45
46
46
// Prepare test environment.
47
47
$ unzip_destination = self ::$ test_data_dir . 'archive/ ' ;
48
+ $ this ->cleanup_unzip_destination ( $ unzip_destination ); // See #65443 for details.
48
49
mkdir ( $ unzip_destination );
49
50
50
51
_unzip_file_ziparchive ( self ::$ test_data_dir . 'archive.zip ' , $ unzip_destination );
51
52
52
53
// Cleanup test environment.
53
- $ this ->rmdir ( $ unzip_destination );
54
- $ this ->delete_folders ( $ unzip_destination );
54
+ $ this ->cleanup_unzip_destination ( $ unzip_destination );
55
55
56
56
$ this ->assertSame ( 1 , $ filter ->get_call_count () );
57
57
}
You can’t perform that action at this time.
0 commit comments