Changeset 49117
- Timestamp:
- 10/10/2020 01:37:18 AM (4 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/manager.php
r49108 r49117 3614 3614 $this->manager->register_controls(); 3615 3615 $setting = $this->manager->get_setting( 'external_header_video' ); 3616 $video_url = 'https://www.youtube.com/watch?v= KiS8rZBeIO0';3616 $video_url = 'https://www.youtube.com/watch?v=72xdCU__XCk'; 3617 3617 3618 3618 $whitespaces = array( -
trunk/tests/phpunit/tests/formatting/MakeClickable.php
r48937 r49117 290 290 "http://trunk.domain/testing#something 291 291 (<img src='http://trunk.domain/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley'>)", 292 "<span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http ://www.youtube.com/v/nd_BdvG43rE&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' /> <param name='allowfullscreen' value='true' /> <param name='wmode' value='opaque' /> <embed src='http://www.youtube.com/v/nd_BdvG43rE&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='opaque'></embed> </object></span>",292 "<span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='https://www.youtube.com/watch?v=72xdCU__XCk&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' /> <param name='allowfullscreen' value='true' /> <param name='wmode' value='opaque' /> <embed src='https://www.youtube.com/watch?v=72xdCU__XCk&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='opaque'></embed> </object></span>", 293 293 '<a href="http://example.com/example.gif" title="Image from http://example.com">Look at this image!</a>', 294 294 ); … … 299 299 "<a href=\"http://trunk.domain/testing#something\" rel=\"nofollow\">http://trunk.domain/testing#something</a> 300 300 (<img src='http://trunk.domain/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley'>)", 301 "<span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http ://www.youtube.com/v/nd_BdvG43rE&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' /> <param name='allowfullscreen' value='true' /> <param name='wmode' value='opaque' /> <embed src='http://www.youtube.com/v/nd_BdvG43rE&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='opaque'></embed> </object></span>",301 "<span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='https://www.youtube.com/watch?v=72xdCU__XCk&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' /> <param name='allowfullscreen' value='true' /> <param name='wmode' value='opaque' /> <embed src='https://www.youtube.com/watch?v=72xdCU__XCk&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='opaque'></embed> </object></span>", 302 302 '<a href="http://example.com/example.gif" title="Image from http://example.com">Look at this image!</a>', 303 303 ); -
trunk/tests/phpunit/tests/media.php
r49085 r49117 935 935 $actual = wp_video_shortcode( 936 936 array( 937 'src' => 'https://www.youtube.com/watch?v= i_cVJgIz_Cs&feature=youtu.be',937 'src' => 'https://www.youtube.com/watch?v=72xdCU__XCk&feature=youtu.be', 938 938 ) 939 939 ); … … 949 949 $actual = wp_video_shortcode( 950 950 array( 951 'src' => 'http://www.youtube.com/watch?v= i_cVJgIz_Cs',952 ) 953 ); 954 955 $this->assertContains( 'src="https://www.youtube.com/watch?v= i_cVJgIz_Cs', $actual );951 'src' => 'http://www.youtube.com/watch?v=72xdCU__XCk', 952 ) 953 ); 954 955 $this->assertContains( 'src="https://www.youtube.com/watch?v=72xdCU__XCk', $actual ); 956 956 } 957 957 … … 963 963 $actual = wp_video_shortcode( 964 964 array( 965 'src' => 'http://vimeo.com/ 190372437?blah=meh',966 ) 967 ); 968 969 $this->assertContains( 'src="https://vimeo.com/ 190372437', $actual );965 'src' => 'http://vimeo.com/76979871?blah=meh', 966 ) 967 ); 968 969 $this->assertContains( 'src="https://vimeo.com/76979871', $actual ); 970 970 $this->assertNotContains( 'blah=meh', $actual ); 971 971 } … … 978 978 $actual = wp_video_shortcode( 979 979 array( 980 'src' => 'http://vimeo.com/ 190372437',981 ) 982 ); 983 984 $this->assertContains( 'src="https://vimeo.com/ 190372437?loop=0', $actual );980 'src' => 'http://vimeo.com/76979871', 981 ) 982 ); 983 984 $this->assertContains( 'src="https://vimeo.com/76979871?loop=0', $actual ); 985 985 } 986 986 … … 992 992 $actual = wp_video_shortcode( 993 993 array( 994 'src' => 'http://vimeo.com/ 190372437',994 'src' => 'http://vimeo.com/76979871', 995 995 'loop' => true, 996 996 ) 997 997 ); 998 998 999 $this->assertContains( 'src="https://vimeo.com/ 190372437?loop=1', $actual );999 $this->assertContains( 'src="https://vimeo.com/76979871?loop=1', $actual ); 1000 1000 } 1001 1001 -
trunk/tests/phpunit/tests/oembed/filterResult.php
r48937 r49117 8 8 $html = '<p></p><iframe onload="alert(1)"></iframe>'; 9 9 10 $actual = wp_filter_oembed_result( $html, (object) array( 'type' => 'rich' ), 'https://www.youtube.com/watch?v= dQw4w9WgXcQ' );10 $actual = wp_filter_oembed_result( $html, (object) array( 'type' => 'rich' ), 'https://www.youtube.com/watch?v=72xdCU__XCk' ); 11 11 12 12 $this->assertSame( $html, $actual ); -
trunk/tests/phpunit/tests/oembed/filterTitleAttributes.php
r44942 r49117 12 12 'type' => 'rich', 13 13 ), 14 'https://www.youtube.com/watch?v= dQw4w9WgXcQ',14 'https://www.youtube.com/watch?v=72xdCU__XCk', 15 15 '<p>Foo</p><iframe src=""></iframe><b>Bar</b>', 16 16 ), … … 20 20 'type' => 'rich', 21 21 ), 22 'https://www.youtube.com/watch?v= dQw4w9WgXcQ',22 'https://www.youtube.com/watch?v=72xdCU__XCk', 23 23 '<p>Foo</p><iframe title="Hello World" src=""></iframe><b>Bar</b>', 24 24 ), … … 29 29 'title' => 'Hello World', 30 30 ), 31 'https://www.youtube.com/watch?v= dQw4w9WgXcQ',31 'https://www.youtube.com/watch?v=72xdCU__XCk', 32 32 '<p>Foo</p>', 33 33 ), … … 38 38 'title' => 'Hello World', 39 39 ), 40 'https://www.youtube.com/watch?v= dQw4w9WgXcQ',40 'https://www.youtube.com/watch?v=72xdCU__XCk', 41 41 '<p title="Foo">Bar</p>', 42 42 ), … … 47 47 'title' => 'Hello World', 48 48 ), 49 'https://www.youtube.com/watch?v= dQw4w9WgXcQ',49 'https://www.youtube.com/watch?v=72xdCU__XCk', 50 50 '<p>Foo</p><iframe title="Hello World" src=""></iframe><b>Bar</b>', 51 51 ), … … 56 56 'title' => 'Bar', 57 57 ), 58 'https://www.youtube.com/watch?v= dQw4w9WgXcQ',58 'https://www.youtube.com/watch?v=72xdCU__XCk', 59 59 '<iframe title="Foo" src=""></iframe>', 60 60 ), … … 80 80 'title' => 'Bar', 81 81 ), 82 'https://www.youtube.com/watch?v= dQw4w9WgXcQ'82 'https://www.youtube.com/watch?v=72xdCU__XCk' 83 83 ); 84 84 … … 97 97 'title' => 'Bar', 98 98 ), 99 'https://www.youtube.com/watch?v= dQw4w9WgXcQ'99 'https://www.youtube.com/watch?v=72xdCU__XCk' 100 100 ); 101 101 -
trunk/tests/phpunit/tests/shortcode.php
r48937 r49117 214 214 215 215 function test_positional_atts_url() { 216 $out = do_shortcode( '[test-shortcode-tag http ://www.youtube.com/watch?v=eBGIQ7ZuuiU]' );216 $out = do_shortcode( '[test-shortcode-tag https://www.youtube.com/watch?v=72xdCU__XCk]' ); 217 217 $this->assertSame( '', $out ); 218 $this->assertSame( array( 0 => 'http ://www.youtube.com/watch?v=eBGIQ7ZuuiU' ), $this->atts );218 $this->assertSame( array( 0 => 'https://www.youtube.com/watch?v=72xdCU__XCk' ), $this->atts ); 219 219 $this->assertSame( 'test-shortcode-tag', $this->tagname ); 220 220 } -
trunk/tests/phpunit/tests/widgets/media-video-widget.php
r48939 r49117 287 287 'attachment_id' => null, 288 288 'loop' => false, 289 'url' => 'https://www.youtube.com/watch?v= OQSNhk5ICTI',289 'url' => 'https://www.youtube.com/watch?v=72xdCU__XCk', 290 290 'content' => $content, 291 291 ) … … 295 295 // Custom attributes. 296 296 $this->assertContains( 'preload="metadata"', $output ); 297 $this->assertContains( 'src="https://www.youtube.com/watch?v= OQSNhk5ICTI', $output );297 $this->assertContains( 'src="https://www.youtube.com/watch?v=72xdCU__XCk', $output ); 298 298 $this->assertContains( $content, $output ); 299 299 }
Note: See TracChangeset
for help on using the changeset viewer.