From 3e603a858987340f5663a1c689cbabfa33783c08 Mon Sep 17 00:00:00 2001 From: SirLouen Date: Wed, 18 Jun 2025 14:11:29 +0200 Subject: [PATCH] Youtube oEmbed Test is not loading scripts --- tests/phpunit/tests/oembed/controller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/tests/oembed/controller.php b/tests/phpunit/tests/oembed/controller.php index aa0275c4c87ee..d1a687b20d0d1 100644 --- a/tests/phpunit/tests/oembed/controller.php +++ b/tests/phpunit/tests/oembed/controller.php @@ -604,6 +604,7 @@ public function test_proxy_with_valid_oembed_provider() { * @see wp_maybe_load_embeds() */ public function test_proxy_with_classic_embed_provider() { + wp_scripts()->registered['wp-embed']; wp_set_current_user( self::$editor ); $request = new WP_REST_Request( 'GET', '/oembed/1.0/proxy' ); $request->set_param( 'url', 'https://www.youtube.com/embed/' . self::YOUTUBE_VIDEO_ID );