Tests: Remove empty directory in WP_UnitTestCase_Base::rmdir().

The `WP_UnitTestCase_Base::rmdir()` method selectively deletes files from a directory, skipping any paths from the `$ignore_files` property.

This commit updates the method to remove the empty directory if there are no files left, bringing some parity with PHP native `rmdir()` function.

Follow-up to [677/tests], [29120].

See #55652.
Built from https://develop.svn.wordpress.org/trunk@54300


git-svn-id: http://core.svn.wordpress.org/trunk@53859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2022-09-25 02:39:14 +00:00
parent 3d245c574e
commit 24838999e6

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1-beta1-54299';
$wp_version = '6.1-beta1-54300';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.