mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-15 18:14:26 +00:00
Tests: Update third-party video URLs in unit tests with more permanent videos.
This brings some consistency to the YouTube and Vimeo URLs used for tests: * For YouTube, use the video of WordPress 5.0 release. * For Vimeo, use one of the official test videos. Props garrett-eclipse, dd32. Fixes #51487. See #meta5467. git-svn-id: https://develop.svn.wordpress.org/trunk@49117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -213,9 +213,9 @@ class Tests_Shortcode extends WP_UnitTestCase {
|
||||
}
|
||||
|
||||
function test_positional_atts_url() {
|
||||
$out = do_shortcode( '[test-shortcode-tag http://www.youtube.com/watch?v=eBGIQ7ZuuiU]' );
|
||||
$out = do_shortcode( '[test-shortcode-tag https://www.youtube.com/watch?v=72xdCU__XCk]' );
|
||||
$this->assertSame( '', $out );
|
||||
$this->assertSame( array( 0 => 'http://www.youtube.com/watch?v=eBGIQ7ZuuiU' ), $this->atts );
|
||||
$this->assertSame( array( 0 => 'https://www.youtube.com/watch?v=72xdCU__XCk' ), $this->atts );
|
||||
$this->assertSame( 'test-shortcode-tag', $this->tagname );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user