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

WordPress Trac noreply at wordpress.org
Tue Jul 26 13:53:34 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:"53782" 53782]:
 {{{
 #!CommitTicketReference repository="" revision="53782"
 Tests: Bring some modernization to `wp_insert_post()` tests.

 Includes:
 * Using `assertIsInt()` instead of `assertIsNumeric()` for post IDs.
 * Using consistent variable names for post data and retrieved posts.
 * Removing added filters before performing assertions, not after.
 * Removing unused `Tests_Post::$post_ids` property.
 * Correcting the order of arguments in some assertions.
 * Converting some `foreach()` loops to data providers.
 * Wrapping long lines for better readability.

 Follow-up to [13/tests], [14/tests], [167/tests], [496/tests],
 [1174/tests], [1246/tests], [1287/tests], [1307/tests], [1326/tests],
 [30510], [33261], [33630], [34762], [46279], [50012], [51438].

 See #55652.
 }}}

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


More information about the wp-trac mailing list