WordPress.org

Make WordPress Core

#122 closed defect (fixed)

Tests for WP_Meta_Query

Reported by: joehoyle Owned by:
Milestone: Priority: normal
Component: Query Keywords:
Cc:

Description

It appears there are no tests written for Meta query, and I was going to give it a bash. Though I kind of stumbled at the first hurdle: creating the file. What's the naming convention for the files structure, would a testCase for WP_Meta_Query be in /tests/meta.php, /tests/query-meta.php, /tests/query/meta.php ?

Loosely linked to http://core.trac.wordpress.org/ticket/19729

Change History (3)

comment:1 nacin20 months ago

Probably tests/meta/query.php, Tests_Meta_Query as the class name.

WP_Meta_Query is a piece of the meta(data) API in WordPress. It can also be used for more than just WP_Query (such as in WP_User_Query), so tests/query/meta.php is too specific.

comment:2 joehoyle20 months ago

Cool, I had presumed tests/query/ was not limited to WP_Query, rather all the query APIs

comment:3 nacin16 months ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.