[wp-trac] [WordPress Trac] #55652: Test tool and unit test improvements for 6.1

WordPress Trac noreply at wordpress.org
Sun Sep 25 02:37:25 UTC 2022


#55652: Test tool and unit test improvements for 6.1
--------------------------------------+---------------------
 Reporter:  hellofromTonya            |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  6.1
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"54300" 54300]:
 {{{
 #!CommitTicketReference repository="" revision="54300"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55652#comment:167>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list