Skip to content

Commit

Permalink
WIP: Debug CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp committed Nov 22, 2023
1 parent 4e4344d commit 98d84e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ 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 ) );
$this->assertTrue(get_post( $this->draft_post_id ));
$this->assertTrue($response);
$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 98d84e1

Please sign in to comment.