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-attachments-controller.php

    r38832 r38834  
    426426        $this->assertEquals( 201, $response->get_status() );
    427427        $this->assertEquals( 'image', $data['media_type'] );
    428         $this->assertEquals( 'A field of amazing canola', $data['title']['rendered'] );
    429         $this->assertEquals( 'The description for the image', $data['caption'] );
    430428    }
    431429
Note: See TracChangeset for help on using the changeset viewer.