You appear to be a bot. Output may be restricted
Description
Usage
Tests_Media::test_new_img_caption_shortcode_new_format_and_linked_image_with_newline();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/media.php
Lines:
1 to 13 of 13
function test_new_img_caption_shortcode_new_format_and_linked_image_with_newline() { $linked_image = "<a href='#'>{$this->img_content}</a>"; $result = img_caption_shortcode( array( 'width' => 20 ), $linked_image . "\n\n" . $this->html_content ); $img_preg = preg_quote( $linked_image ); $content_preg = preg_quote( $this->html_content ); $this->assertEquals( 1, preg_match_all( "~{$img_preg}.*wp-caption-text~", $result, $_r ) ); $this->assertEquals( 1, preg_match_all( "~wp-caption-text.*{$content_preg}~", $result, $_r ) ); }