Skip to content

Commit 64e80e1

Browse files
Ensure schema generation works
1 parent 33a13ac commit 64e80e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/phpunit/tests/rest-api/rest-schema-setup.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public function set_up() {
2222
do_action( 'rest_api_init', $wp_rest_server );
2323

2424
add_filter( 'pre_http_request', array( $this, 'mock_embed_request' ), 10, 3 );
25+
26+
// `get_post_embed_html()` assumes `wp-includes/js/wp-embed.js` is present:
27+
self::touch( ABSPATH . WPINC . '/js/wp-embed.js' );
2528
}
2629

2730
public function tear_down() {

0 commit comments

Comments
 (0)