Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#25633 closed defect (bug) (fixed)

Tests_XMLRPC_wp_getPosts::test_filters failing

Reported by: atimmer's profile 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 11 years ago.

Download all attachments as: .zip

Change History (3)

@atimmer
11 years ago

#1 @atimmer
11 years ago

  • Keywords close added; has-patch removed

Fixed in [26087].

#2 @SergeyBiryukov
11 years 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.