Make WordPress Core

Opened 6 years ago

Closed 5 years ago

#122 closed defect (fixed)

Tests for WP_Meta_Query

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


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)

#1 @nacin
6 years 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.

#2 @joehoyle
6 years ago

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

#3 @nacin
5 years ago

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