diff --git a/tests/phpunit/tests/customize/manager.php b/tests/phpunit/tests/customize/manager.php index e7c57ddfa8..4316fb3a92 100644 --- a/tests/phpunit/tests/customize/manager.php +++ b/tests/phpunit/tests/customize/manager.php @@ -3613,7 +3613,7 @@ class Tests_WP_Customize_Manager extends WP_UnitTestCase { function test_sanitize_external_header_video_trim() { $this->manager->register_controls(); $setting = $this->manager->get_setting( 'external_header_video' ); - $video_url = 'https://www.youtube.com/watch?v=KiS8rZBeIO0'; + $video_url = 'https://www.youtube.com/watch?v=72xdCU__XCk'; $whitespaces = array( ' ', // Space. diff --git a/tests/phpunit/tests/formatting/MakeClickable.php b/tests/phpunit/tests/formatting/MakeClickable.php index cc59179664..612d7a1350 100644 --- a/tests/phpunit/tests/formatting/MakeClickable.php +++ b/tests/phpunit/tests/formatting/MakeClickable.php @@ -289,7 +289,7 @@ class Tests_Formatting_MakeClickable extends WP_UnitTestCase { "http://trunk.domain/testing#something (:))", "http://trunk.domain/testing#something (:))", - " ", + " ", 'Look at this image!', ); $urls_expected = array( @@ -298,7 +298,7 @@ class Tests_Formatting_MakeClickable extends WP_UnitTestCase { "http://trunk.domain/testing#something (:))", "http://trunk.domain/testing#something (:))", - " ", + " ", 'Look at this image!', ); foreach ( $urls_before as $key => $url ) { diff --git a/tests/phpunit/tests/media.php b/tests/phpunit/tests/media.php index 1bb5095292..622ce7289b 100644 --- a/tests/phpunit/tests/media.php +++ b/tests/phpunit/tests/media.php @@ -934,7 +934,7 @@ VIDEO; function test_wp_video_shortcode_youtube_remove_feature() { $actual = wp_video_shortcode( array( - 'src' => 'https://www.youtube.com/watch?v=i_cVJgIz_Cs&feature=youtu.be', + 'src' => 'https://www.youtube.com/watch?v=72xdCU__XCk&feature=youtu.be', ) ); @@ -948,11 +948,11 @@ VIDEO; function test_wp_video_shortcode_youtube_force_ssl() { $actual = wp_video_shortcode( array( - 'src' => 'http://www.youtube.com/watch?v=i_cVJgIz_Cs', + 'src' => 'http://www.youtube.com/watch?v=72xdCU__XCk', ) ); - $this->assertContains( 'src="https://www.youtube.com/watch?v=i_cVJgIz_Cs', $actual ); + $this->assertContains( 'src="https://www.youtube.com/watch?v=72xdCU__XCk', $actual ); } /** @@ -962,11 +962,11 @@ VIDEO; function test_wp_video_shortcode_vimeo_force_ssl_remove_query_args() { $actual = wp_video_shortcode( array( - 'src' => 'http://vimeo.com/190372437?blah=meh', + 'src' => 'http://vimeo.com/76979871?blah=meh', ) ); - $this->assertContains( 'src="https://vimeo.com/190372437', $actual ); + $this->assertContains( 'src="https://vimeo.com/76979871', $actual ); $this->assertNotContains( 'blah=meh', $actual ); } @@ -977,11 +977,11 @@ VIDEO; function test_wp_video_shortcode_vimeo_adds_loop() { $actual = wp_video_shortcode( array( - 'src' => 'http://vimeo.com/190372437', + 'src' => 'http://vimeo.com/76979871', ) ); - $this->assertContains( 'src="https://vimeo.com/190372437?loop=0', $actual ); + $this->assertContains( 'src="https://vimeo.com/76979871?loop=0', $actual ); } /** @@ -991,12 +991,12 @@ VIDEO; function test_wp_video_shortcode_vimeo_force_adds_loop_true() { $actual = wp_video_shortcode( array( - 'src' => 'http://vimeo.com/190372437', + 'src' => 'http://vimeo.com/76979871', 'loop' => true, ) ); - $this->assertContains( 'src="https://vimeo.com/190372437?loop=1', $actual ); + $this->assertContains( 'src="https://vimeo.com/76979871?loop=1', $actual ); } /** diff --git a/tests/phpunit/tests/oembed/filterResult.php b/tests/phpunit/tests/oembed/filterResult.php index 06ed74532a..8107dc5e3f 100644 --- a/tests/phpunit/tests/oembed/filterResult.php +++ b/tests/phpunit/tests/oembed/filterResult.php @@ -7,7 +7,7 @@ class Tests_Filter_oEmbed_Result extends WP_UnitTestCase { function test_filter_oembed_result_trusted_malicious_iframe() { $html = '

'; - $actual = wp_filter_oembed_result( $html, (object) array( 'type' => 'rich' ), 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' ); + $actual = wp_filter_oembed_result( $html, (object) array( 'type' => 'rich' ), 'https://www.youtube.com/watch?v=72xdCU__XCk' ); $this->assertSame( $html, $actual ); } diff --git a/tests/phpunit/tests/oembed/filterTitleAttributes.php b/tests/phpunit/tests/oembed/filterTitleAttributes.php index f378686752..7f35cac8ee 100644 --- a/tests/phpunit/tests/oembed/filterTitleAttributes.php +++ b/tests/phpunit/tests/oembed/filterTitleAttributes.php @@ -11,7 +11,7 @@ class Tests_Filter_oEmbed_Iframe_Title_Attribute extends WP_UnitTestCase { array( 'type' => 'rich', ), - 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', + 'https://www.youtube.com/watch?v=72xdCU__XCk', '

Foo

Bar', ), array( @@ -19,7 +19,7 @@ class Tests_Filter_oEmbed_Iframe_Title_Attribute extends WP_UnitTestCase { array( 'type' => 'rich', ), - 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', + 'https://www.youtube.com/watch?v=72xdCU__XCk', '

Foo

Bar', ), array( @@ -28,7 +28,7 @@ class Tests_Filter_oEmbed_Iframe_Title_Attribute extends WP_UnitTestCase { 'type' => 'rich', 'title' => 'Hello World', ), - 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', + 'https://www.youtube.com/watch?v=72xdCU__XCk', '

Foo

', ), array( @@ -37,7 +37,7 @@ class Tests_Filter_oEmbed_Iframe_Title_Attribute extends WP_UnitTestCase { 'type' => 'rich', 'title' => 'Hello World', ), - 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', + 'https://www.youtube.com/watch?v=72xdCU__XCk', '

Bar

', ), array( @@ -46,7 +46,7 @@ class Tests_Filter_oEmbed_Iframe_Title_Attribute extends WP_UnitTestCase { 'type' => 'rich', 'title' => 'Hello World', ), - 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', + 'https://www.youtube.com/watch?v=72xdCU__XCk', '

Foo

Bar', ), array( @@ -55,7 +55,7 @@ class Tests_Filter_oEmbed_Iframe_Title_Attribute extends WP_UnitTestCase { 'type' => 'rich', 'title' => 'Bar', ), - 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', + 'https://www.youtube.com/watch?v=72xdCU__XCk', '', ), ); @@ -79,7 +79,7 @@ class Tests_Filter_oEmbed_Iframe_Title_Attribute extends WP_UnitTestCase { 'type' => 'rich', 'title' => 'Bar', ), - 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' + 'https://www.youtube.com/watch?v=72xdCU__XCk' ); remove_filter( 'oembed_iframe_title_attribute', array( $this, '_filter_oembed_iframe_title_attribute' ) ); @@ -96,7 +96,7 @@ class Tests_Filter_oEmbed_Iframe_Title_Attribute extends WP_UnitTestCase { 'type' => 'rich', 'title' => 'Bar', ), - 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' + 'https://www.youtube.com/watch?v=72xdCU__XCk' ); remove_filter( 'oembed_iframe_title_attribute', array( $this, '_filter_oembed_iframe_title_attribute' ) ); diff --git a/tests/phpunit/tests/shortcode.php b/tests/phpunit/tests/shortcode.php index ec53317af4..764c492764 100644 --- a/tests/phpunit/tests/shortcode.php +++ b/tests/phpunit/tests/shortcode.php @@ -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 ); } diff --git a/tests/phpunit/tests/widgets/media-video-widget.php b/tests/phpunit/tests/widgets/media-video-widget.php index 77a83c6ef0..b33bce8353 100644 --- a/tests/phpunit/tests/widgets/media-video-widget.php +++ b/tests/phpunit/tests/widgets/media-video-widget.php @@ -286,7 +286,7 @@ class Test_WP_Widget_Media_Video extends WP_UnitTestCase { array( 'attachment_id' => null, 'loop' => false, - 'url' => 'https://www.youtube.com/watch?v=OQSNhk5ICTI', + 'url' => 'https://www.youtube.com/watch?v=72xdCU__XCk', 'content' => $content, ) ); @@ -294,7 +294,7 @@ class Test_WP_Widget_Media_Video extends WP_UnitTestCase { // Custom attributes. $this->assertContains( 'preload="metadata"', $output ); - $this->assertContains( 'src="https://www.youtube.com/watch?v=OQSNhk5ICTI', $output ); + $this->assertContains( 'src="https://www.youtube.com/watch?v=72xdCU__XCk', $output ); $this->assertContains( $content, $output ); }