You appear to be a bot. Output may be restricted
Description
Usage
Tests_Media::test_img_caption_shortcode_with_old_format();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/media.php
Lines:
1 to 19 of 19
function test_img_caption_shortcode_with_old_format() { $result = img_caption_shortcode( array( 'width' => 20, 'caption' => $this->caption, ) ); $this->assertEquals( 2, preg_match_all( '/wp-caption/', $result, $_r ) ); $this->assertEquals( 1, preg_match_all( '/alignnone/', $result, $_r ) ); $this->assertEquals( 1, preg_match_all( "/{$this->caption}/", $result, $_r ) ); if ( current_theme_supports( 'html5', 'caption' ) ) { $this->assertEquals( 1, preg_match_all( '/width: 20/', $result, $_r ) ); } else { $this->assertEquals( 1, preg_match_all( '/width: 30/', $result, $_r ) ); } }