From 70f530e2381748ee854aa14e73fc2d078d7c67fe Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 5 May 2015 21:30:57 +0000 Subject: [PATCH] youtube.com oEmbed test should always expect HTTPS. YouTube recently changed its oEmbed endpoint so that the iframe markup always contains an HTTPS URL, regardless of the scheme of the video URL originally requested. This changeset fixes the corresponding unit test. Fixes #32260. git-svn-id: https://develop.svn.wordpress.org/trunk@32358 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/media.php b/tests/phpunit/tests/media.php index 14e92af1c2..5a7278e8ce 100644 --- a/tests/phpunit/tests/media.php +++ b/tests/phpunit/tests/media.php @@ -123,7 +123,7 @@ CAP; global $wp_embed; $out = wp_oembed_get( 'http://www.youtube.com/watch?v=oHg5SJYRHA0' ); - $this->assertContains( 'http://www.youtube.com/embed/oHg5SJYRHA0?feature=oembed', $out ); + $this->assertContains( 'https://www.youtube.com/embed/oHg5SJYRHA0?feature=oembed', $out ); $out = wp_oembed_get( 'https://www.youtube.com/watch?v=oHg5SJYRHA0' ); $this->assertContains( 'https://www.youtube.com/embed/oHg5SJYRHA0?feature=oembed', $out );