diff --git a/plugins/faustwp/tests/integration/ReplacementCallbacksTests.php b/plugins/faustwp/tests/integration/ReplacementCallbacksTests.php index 3227c7c85..05c772fcd 100644 --- a/plugins/faustwp/tests/integration/ReplacementCallbacksTests.php +++ b/plugins/faustwp/tests/integration/ReplacementCallbacksTests.php @@ -221,18 +221,6 @@ public function test_post_link_returns_unfiltered_link_on_ajax_requests_to_gener wp_set_current_user( null ); } - /** - * Tests preview_link_in_rest_response() returns preview link in draft mode. - */ - public function test_preview_link_in_rest_response_returns_preview_link_for_draft_posts() { - faustwp_update_setting( 'frontend_uri', 'http://moo' ); - $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($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'] ); - } - /** * Tests get_preview_post_link() returns rewritten value. */