Changeset 40892 for trunk/tests/phpunit/tests/media.php
- Timestamp:
- 06/09/2017 07:28:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r40847 r40892 762 762 763 763 /** 764 * @ticket 40977 765 * @depends test_video_shortcode_body 766 */ 767 function test_wp_video_shortcode_vimeo_adds_loop() { 768 $actual = wp_video_shortcode( array( 769 'src' => 'http://vimeo.com/190372437', 770 ) ); 771 772 $this->assertContains( 'src="https://vimeo.com/190372437?loop=0', $actual ); 773 } 774 775 /** 776 * @ticket 40977 777 * @depends test_video_shortcode_body 778 */ 779 function test_wp_video_shortcode_vimeo_force_adds_loop_true() { 780 $actual = wp_video_shortcode( array( 781 'src' => 'http://vimeo.com/190372437', 782 'loop' => true, 783 ) ); 784 785 $this->assertContains( 'src="https://vimeo.com/190372437?loop=1', $actual ); 786 } 787 788 /** 764 789 * Test [video] shortcode processing 765 790 *
Note: See TracChangeset
for help on using the changeset viewer.