[wp-trac] [WordPress Trac] #25633: Tests_XMLRPC_wp_getPosts::test_filters failing
WordPress Trac
noreply at wordpress.org
Fri Oct 18 21:54:53 UTC 2013
#25633: Tests_XMLRPC_wp_getPosts::test_filters failing
--------------------------+-----------------------------
Reporter: atimmer | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Unit Tests | Version:
Severity: minor | Keywords: has-patch
--------------------------+-----------------------------
I get the following error when running the tests:
{{{
1) Tests_XMLRPC_wp_getPosts::test_filters
Failed asserting that 11 matches expected 0.
/Users/atimmer/Sites/wp-core/tests/phpunit/tests/xmlrpc/wp/getPosts.php:89
}}}
It fails because it loops through the posts and returns posts by offset.
Because it sorts by post_date and the post_dates are identical. I fixes it
by sorting by ID instead.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25633>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list