Skip to content

Commit

Permalink
Don't test revisions excerpt in rest api tests #114
Browse files Browse the repository at this point in the history
  • Loading branch information
markkap committed Apr 27, 2019
1 parent 674d737 commit 682fe88
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/phpunit/tests/rest-api/rest-revisions-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,6 @@ protected function check_get_revision_response( $response, $revision ) {
$this->assertEquals( mysql_to_rfc3339( $revision->post_date ), $response['date'] );
$this->assertEquals( mysql_to_rfc3339( $revision->post_date_gmt ), $response['date_gmt'] );

$rendered_excerpt = apply_filters( 'the_excerpt', apply_filters( 'get_the_excerpt', $revision->post_excerpt, $revision ) );
$this->assertEquals( $rendered_excerpt, $response['excerpt']['rendered'] );

$rendered_guid = apply_filters( 'get_the_guid', $revision->guid, $revision->ID );
$this->assertEquals( $rendered_guid, $response['guid']['rendered'] );

Expand Down

0 comments on commit 682fe88

Please sign in to comment.