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
This commit is contained in:
Boone Gorges 2015-05-05 21:30:57 +00:00
parent e68f7765c1
commit 70f530e238

View File

@ -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 );