[wp-trac] [WordPress Trac] #29781: Unit tests for WP_Date_Query

WordPress Trac noreply at wordpress.org
Mon Oct 13 00:17:14 UTC 2014


#29781: Unit tests for WP_Date_Query
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  enhancement   |      Status:  closed
 Priority:  normal        |   Milestone:  4.1
Component:  Date/Time     |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------

Comment (by boonebgorges):

 In [changeset:"29885"]:
 {{{
 #!CommitTicketReference repository="" revision="29885"
 Don't create dummy data for each date query test.

 The integration tests for using date_query in WP_Query require the
 creation of
 dummy post data, much of which is common between a number of tests.
 However,
 newer tests do not require as much data, so to reduce overhead we create
 the
 data explicitly only when we need it, instead of in the setUp() method.

 See #29781.
 }}}

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


More information about the wp-trac mailing list