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

WordPress Trac noreply at wordpress.org
Wed Jul 27 14:59:28 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:"53785" 53785]:
 {{{
 #!CommitTicketReference repository="" revision="53785"
 Tests: Move `wp_insert_post()` tests to their own file.

 Now that there is a separate test class for `wp_insert_post()` tests, some
 of the pre-existing tests from the general `Tests_Post` class can be moved
 there.

 Includes:
 * Removal of unnecessarily setting the current user to Editor for all
 tests.
 * Removal of unnecessarily setting the cron option to an empty array for
 all tests.

 Follow-up to [496/tests], [36607], [53782], [53783].

 See #55652.
 }}}

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


More information about the wp-trac mailing list