mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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'] );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user