diff --git a/plugins/faustwp/tests/integration/ReplacementCallbacksTests.php b/plugins/faustwp/tests/integration/ReplacementCallbacksTests.php index 57958ed18..3227c7c85 100644 --- a/plugins/faustwp/tests/integration/ReplacementCallbacksTests.php +++ b/plugins/faustwp/tests/integration/ReplacementCallbacksTests.php @@ -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'] ); }