| | 111 | function test_new_img_caption_shortcode_new_format_no_inline() { |
| | 112 | add_theme_support( 'no-inline-style-captions' ); |
| | 113 | $result = img_caption_shortcode( |
| | 114 | array( 'width' => 20 ), |
| | 115 | $this->img_content . $this->html_content |
| | 116 | ); |
| | 117 | $img_preg = preg_quote( $this->img_content ); |
| | 118 | $content_preg = preg_quote( $this->html_content ); |
| | 119 | |
| | 120 | $this->assertEquals( 1, preg_match( "~^<div class=\"wp-caption alignnone\">{$img_preg}<p class=\"wp-caption-text\">{$content_preg}</p></div>$~", $result ) ); |
| | 121 | remove_theme_support( 'no-inline-style-captions' ); |
| | 122 | } |
| | 123 | |