wordpress-develop/tests/phpunit/tests/query
Scott Taylor dc48f3d795 Query:
Add a query var, `title`, that allows you to query posts by `post_title`. To accomplish this now, you have to do something like:

{{{
$tacos = get_posts( [
  'post_type' => 'taco',
  's' => $name,
  'exact' => true,
  'sentence' => true,
  'post_status' => 'publish',
  'fields' => 'ids',
  'posts_per_page' => 1
] );
}}}

Adds unit tests.

Fixes #33074.


git-svn-id: https://develop.svn.wordpress.org/trunk@33706 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-22 16:58:21 +00:00
..
conditionals.php Allow is_page_template() to accept an array, as many other conditional tags do. 2015-03-12 16:27:06 +00:00
date.php Share fixtures across a number of query-related test classes. 2014-11-08 15:29:31 +00:00
dateQuery.php Introduced dayofweek_iso time param for WP_Date_Query. 2014-11-01 03:23:15 +00:00
isTerm.php In PHPUnit test classes, parent::tearDown() should be the last thing done in tearDown() methods. 2015-03-05 13:14:15 +00:00
metaQuery.php Add tests for the conversion of 'meta_*' query vars to $meta_query objects in all query classes. 2015-03-07 16:34:50 +00:00
parseQuery.php Check that search value is scalar before parsing. 2014-10-16 03:31:27 +00:00
postStatus.php When querying for a specific post, allow posts with a non-public status to be returned as long as that status is specified. 2015-02-01 20:25:42 +00:00
results.php Query: 2015-08-22 16:58:21 +00:00
search.php In PHPUnit test classes, parent::tearDown() should be the last thing done in tearDown() methods. 2015-03-05 13:14:15 +00:00
setupPostdata.php Use correct notation for global functions in @covers test annotations. 2014-12-19 15:20:41 +00:00
stickies.php Add tests for some of WP_Query's sticky post logic. 2015-02-13 02:24:57 +00:00
taxQuery.php Use field-specific sanitization in WP_Tax_Query::transform_query(). 2015-02-06 02:01:24 +00:00
verboseRewriteRules.php Require dependencies when appropriate in some unit test files. 2015-07-14 03:07:13 +00:00