Skip to content

Commit

Permalink
WIP: CI/CD debug
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp committed Nov 22, 2023
1 parent 7f4c960 commit 4e4344d
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(rawurlencode( wp_make_link_relative( get_permalink( $this->draft_post_id ) ) ));
$this->assertTrue(get_post( $this->draft_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 4e4344d

Please sign in to comment.