Tests: Clean up test file in wpmu_delete_blog() tests.

This makes sure there are no leftover files after the tests from the `multisite` directory are run separately.

Follow-up to [30404].

See #56793.

git-svn-id: https://develop.svn.wordpress.org/trunk@54864 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-11-22 20:17:08 +00:00
parent ea651b1fc1
commit 95d11878b0
2 changed files with 4 additions and 0 deletions
@@ -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'] );
}
}
+2
View File
@@ -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() {