diff --git a/tests/phpunit/tests/multisite/msFilesRewriting.php b/tests/phpunit/tests/multisite/msFilesRewriting.php index 38818b5028..7d469769ba 100644 --- a/tests/phpunit/tests/multisite/msFilesRewriting.php +++ b/tests/phpunit/tests/multisite/msFilesRewriting.php @@ -72,6 +72,8 @@ if ( is_multisite() ) : // The file on the main site should still exist. The file on the deleted site should not. $this->assertFileExists( $file1['file'] ); $this->assertFileDoesNotExist( $file2['file'] ); + + unlink( $file1['file'] ); } } diff --git a/tests/phpunit/tests/multisite/site.php b/tests/phpunit/tests/multisite/site.php index 6507fbbf22..a3e179a88d 100644 --- a/tests/phpunit/tests/multisite/site.php +++ b/tests/phpunit/tests/multisite/site.php @@ -398,6 +398,8 @@ if ( is_multisite() ) : // The file on the main site should still exist. The file on the deleted site should not. $this->assertFileExists( $file1['file'] ); $this->assertFileDoesNotExist( $file2['file'] ); + + unlink( $file1['file'] ); } public function test_wpmu_update_blogs_date() {