Make WordPress Core


Ignore:
Timestamp:
10/20/2016 05:12:26 AM (8 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-categories-controller.php

    r38832 r38834  
    678678        $term = get_term_by( 'id', $this->factory->category->create(), 'category' );
    679679
    680         $request = new WP_REST_Request( 'POST', '/wp/v2/categories/' . $term->term_taxonomy_id );
     680        $request = new WP_REST_Request( 'POST', '/wp/v2/categories/' . $term->term_id );
    681681        $request->set_param( 'parent', $parent->term_id );
    682682        $response = $this->server->dispatch( $request );
Note: See TracChangeset for help on using the changeset viewer.