Skip to content

Commit

Permalink
WIP: Debug testing CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp committed Nov 22, 2023
1 parent 6d7431e commit 03c0257
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ public function test_preview_link_in_rest_response_returns_preview_link_for_draf
$response = new WP_REST_Response( $data=[] );
$response->data['link'] = get_permalink( $this->draft_post_id );
$response = preview_link_in_rest_response( $response, get_post( $this->draft_post_id ) );
print_r(get_permalink( $this->draft_post_id ));
print_r(get_permalink( $this->post_id ));
$this->assertSame( 'http://moo/?p=' . $this->draft_post_id . '&preview=true&previewPathname=' . rawurlencode( wp_make_link_relative( get_permalink( $this->draft_post_id ) ) ) . '&typeName=Post', $response->data['link'] );
}

Expand Down

0 comments on commit 03c0257

Please sign in to comment.