[wp-meta] [Making WordPress.org] #2766: Plugin Directory: Update API endpoint URLs in unit tests

Making WordPress.org noreply at wordpress.org
Thu Apr 20 22:49:49 UTC 2017


#2766: Plugin Directory: Update API endpoint URLs in unit tests
------------------------------+-----------------------
 Reporter:  SergeyBiryukov    |      Owner:
     Type:  defect            |     Status:  new
 Priority:  normal            |  Milestone:
Component:  Plugin Directory  |   Keywords:  has-patch
------------------------------+-----------------------
 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'.
 }}}

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2766>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list