WordPress.org

Make WordPress Core

Changeset 29793


Ignore:
Timestamp:
09/29/2014 04:04:46 PM (7 years ago)
Author:
boonebgorges
Message:

Improved unit test coverage for WP_Date_Query

  • Unit tests for all publicly available functionality in WP_Date_Query
  • Improve performance of date_query tests that use WP_Query

Fixes #29781

Location:
trunk/tests/phpunit/tests
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/dateQuery.php

    r28935 r29793  
    5454    public function _get_query_result( $args = array() ) {
    5555        $args = wp_parse_args( $args, array(
    56             'post_status'    => 'any', // For the future post
    57             'posts_per_page' => '-1',  // To make sure results are accurate
    58             'orderby'        => 'ID',  // Same order they were created
    59             'order'          => 'ASC',
     56            'post_status'            => 'any', // For the future post
     57            'posts_per_page'         => '-1',  // To make sure results are accurate
     58            'orderby'                => 'ID',  // Same order they were created
     59            'order'                  => 'ASC',
     60            'update_post_meta_cache' => false,
     61            'update_post_term_cache' => false,
    6062        ) );
    6163
Note: See TracChangeset for help on using the changeset viewer.