@@ -166,7 +166,7 @@ public function test_post_link_returns_filtered_link_when_content_replacement_is
166
166
*/
167
167
public function test_post_preview_link_returns_filtered_link () {
168
168
faustwp_update_setting ( 'frontend_uri ' , 'http://moo ' );
169
-
169
+ faustwp_update_setting ( ' enable_redirects ' , true );
170
170
$ this ->assertSame ( 'http://moo/?p= ' . $ this ->post_id . '&preview=true&previewPathname= ' . rawurlencode ( wp_make_link_relative ( get_permalink ( $ this ->post_id ) ) ) . '&typeName=Post ' , get_preview_post_link ( $ this ->post_id ) );
171
171
}
172
172
@@ -175,7 +175,7 @@ public function test_post_preview_link_returns_filtered_link() {
175
175
*/
176
176
public function test_post_preview_link_adds_preview_true_query_param () {
177
177
faustwp_update_setting ( 'frontend_uri ' , 'http://moo ' );
178
-
178
+ faustwp_update_setting ( ' enable_redirects ' , true );
179
179
$ link = post_preview_link ( 'http://moo/ ' , get_post ( $ this ->post_id ) );
180
180
181
181
$ this ->assertSame ( 'http://moo/?previewPathname= ' . rawurlencode ( wp_make_link_relative ( get_permalink ( $ this ->post_id ) ) ) . '&p= ' . $ this ->post_id . '&preview=true&typeName=Post ' , $ link );
@@ -198,7 +198,7 @@ public function test_post_preview_doesnt_rewrite_link_with_redirect_off() {
198
198
* Tests post_preview_link() uses frontend_uri scheme if different than home_url scheme.
199
199
*/
200
200
public function test_post_preview_link_uses_frontend_uri_scheme () {
201
-
201
+ faustwp_update_setting ( ' enable_redirects ' , true );
202
202
faustwp_update_setting ( 'frontend_uri ' , 'http://moo ' );
203
203
add_filter ( 'home_url ' , [$ this , 'get_home_url ' ] );
204
204
$ link = post_preview_link ( 'http://moo/ ' , get_post ( $ this ->post_id ) );
0 commit comments