WordPress.org

Make WordPress Core

Opened 6 months ago

Closed 5 months ago

#25633 closed defect (bug) (fixed)

Tests_XMLRPC_wp_getPosts::test_filters failing

Reported by: atimmer Owned by:
Milestone: 3.8 Priority: normal
Severity: minor Version:
Component: Unit Tests Keywords:
Focuses: Cc:

Description

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.

Attachments (1)

25633.1.diff (510 bytes) - added by atimmer 6 months ago.

Download all attachments as: .zip

Change History (3)

atimmer6 months ago

comment:1 atimmer5 months ago

  • Keywords close added; has-patch removed

Fixed in [26087].

comment:2 SergeyBiryukov5 months ago

  • Keywords close removed
  • Milestone changed from Awaiting Review to 3.8
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.