WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/20/2016 05:12:26 AM (3 years ago)
Author:
rachelbaker
Message:

REST API: Fix test failures.

  • Fix leak in setup_notify_comment() test help by removing the comment_flood_filter.
  • Correct uses of $term_taxonomy_id -> $term_id in Category and Tags routing.
  • Temporarily remove the metadata tests for canola.jpg as that file does not have an exifdata. Will need to update the test.

Props jorbin, rmccue, nacin
See #38373.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php

    r38832 r38834  
    532532        $term = get_term_by( 'id', $this->factory->tag->create(), 'post_tag' );
    533533
    534         $request = new WP_REST_Request( 'POST', '/wp/v2/tags/' . $term->term_taxonomy_id );
     534        $request = new WP_REST_Request( 'POST', '/wp/v2/tags/' . $term->term_id );
    535535        $request->set_param( 'parent', REST_TESTS_IMPOSSIBLY_HIGH_NUMBER );
    536536        $response = $this->server->dispatch( $request );
Note: See TracChangeset for help on using the changeset viewer.