diff --git a/tests/phpunit/tests/media.php b/tests/phpunit/tests/media.php index c3e4014a8c..392c039fdb 100644 --- a/tests/phpunit/tests/media.php +++ b/tests/phpunit/tests/media.php @@ -664,6 +664,53 @@ VIDEO; $this->assertContains( 'style="padding:0;"', $actual ); } + /** + * Test [video] shortcode processing + * + */ + function test_video_shortcode_body() { + $width = 720; + $height = 480; + + $w = empty( $GLOBALS['content_width'] ) ? 640 : $GLOBALS['content_width']; + if ( $width > $w ) { + $width = $w; + } + + $post_id = get_post() ? get_the_ID() : 0; + + $video =<<