Skip to content

Commit cb8c0a4

Browse files
committed
include cleanup function under test_should_apply_pre_unzip_file_filters method
1 parent f5d9185 commit cb8c0a4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/phpunit/tests/filesystem/unzipFilePclzip.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 );

tests/phpunit/tests/filesystem/unzipFileZiparchive.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)