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

WordPress Trac noreply at wordpress.org
Thu May 11 10:06:07 UTC 2023


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

Comment (by spacedmonkey):

 In [changeset:"55745" 55745]:
 {{{
 #!CommitTicketReference repository="" revision="55745"
 Tests: Use the function `get_num_queries` across all unit tests.

 Replace use of `$wpdb->num_queries` with a function call to
 `get_num_queries`. This improves readability and consistency between
 tests.

 Props SergeyBiryukov, peterwilsoncc, spacedmonkey.
 See #57841.
 }}}

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


More information about the wp-trac mailing list