Making WordPress.org

Opened 8 years ago

Closed 8 years ago

#2766 closed defect (bug) (fixed)

Plugin Directory: Update API endpoint URLs in unit tests

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: ocean90's profile ocean90
Milestone: Priority: normal
Component: Plugin Directory Keywords: has-patch
Cc:

Description

The tests for locale banner still point to the old plugins-wp URL and currently fail due to a rest_no_route error:

array(3) {
  'code' =>
  string(13) "rest_no_route"
  'message' =>
  string(54) "No route was found matching the URL and request method"
  'data' =>
  array(1) {
    'status' =>
    int(404)
  }
}

...
1) Tests_API_Locale_Banner::test_locale_banner with data set #0 ('en-US,en;q=0.5', array())
Failed asserting that an array has the key 'suggest_string'.

Attachments (1)

2766.patch (2.1 KB) - added by SergeyBiryukov 8 years ago.

Download all attachments as: .zip

Change History (2)

@SergeyBiryukov
8 years ago

#1 @ocean90
8 years ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 5434:

Plugin Directory: Update API endpoint URLs in unit tests.

Props SergeyBiryukov.
Fixes #2766.

Note: See TracTickets for help on using tickets.