[wp-trac] [WordPress Trac] #29560: Improved coverage and performance for WP_Meta_Query unit tests
WordPress Trac
noreply at wordpress.org
Tue Sep 30 21:17:40 UTC 2014
#29560: Improved coverage and performance for WP_Meta_Query unit tests
--------------------------------+---------------------------
Reporter: boonebgorges | Owner: boonebgorges
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.1
Component: Options, Meta APIs | Version:
Severity: normal | Resolution: fixed
Keywords: | Focuses:
--------------------------------+---------------------------
Changes (by boonebgorges):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"29799"]:
{{{
#!CommitTicketReference repository="" revision="29799"
Improve unit tests related to WP_Meta_Query.
* More complete test coverage for publicly available methods of
WP_Meta_Query.
* Move tests that rely on WP_Query (via the meta_query parameter) to
tests/post/query.php.
* Better coverage for basic use cases of 'meta_query', including all
values of 'compare' and default values of 'key', 'value', and 'compare'.
* Improve performance for tests that run WP_Query, by retrieving only post
IDs and not prefetching postmeta and post terms.
* Add 'public' visibility keywords to test methods.
* Whitespace cleanup.
Fixes #29560
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29560#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list