You appear to be a bot. Output may be restricted
Description
Usage
Tests_Media::test_img_caption_shortcode_with_old_format_id_and_align();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/media.php
Lines:
1 to 14 of 14
function test_img_caption_shortcode_with_old_format_id_and_align() { $result = img_caption_shortcode( array( 'width' => 20, 'caption' => $this->caption, 'id' => '"myId', 'align' => '&myAlignment', ) ); $this->assertEquals( 1, preg_match_all( '/wp-caption &myAlignment/', $result, $_r ) ); $this->assertEquals( 1, preg_match_all( '/id="myId"/', $result, $_r ) ); $this->assertEquals( 1, preg_match_all( "/{$this->caption}/", $result, $_r ) ); }