wordpress-develop/tests/phpunit/tests/comment
Boone Gorges 12784e13d4 Improve method consistency in WP_Comment_Query.
* Introduce a `__construct()` method, which can accept an array of query vars.
* Move query logic out of `query()` method and into a new `get_comments()` method.
* Ensure that `$this->comments` is set whenever `get_comments()` returns a value.
* Introduce a `parse_query()` method, where query vars are parsed with default values and the 'parse_comment_query' action is fired.

These changes bring `WP_Comment_Query` syntax closer to that of `WP_Query`.

Props westonruter, morganestes, boonebgorges.
Fixes #24826.

git-svn-id: https://develop.svn.wordpress.org/trunk@31793 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 14:23:33 +00:00
..
commentForm.php Improved customizability for the Submit button in comment_form(). 2015-03-10 19:07:31 +00:00
dateQuery.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
getCommentsPagesCount.php Pinking shears in unit test files. 2015-03-05 13:14:28 +00:00
getPageOfComment.php Add basic unit tests for get_page_of_comment(). 2015-01-29 02:30:22 +00:00
query.php Improve method consistency in WP_Comment_Query. 2015-03-16 14:23:33 +00:00
slashes.php Fix typo in a comment in slashing tests. 2015-01-07 07:08:47 +00:00
template.php Allow get_comments_number() to officially accept $post or $post_id. Adds unit tests. 2014-05-23 17:43:03 +00:00
walker.php Ensure that a has_children parameter is given to Walker::start_el(). 2014-06-24 17:05:56 +00:00