Changeset 903 in tests for trunk/tests/test_includes_media.php
- Timestamp:
- 07/16/2012 05:24:25 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/tests/test_includes_media.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/test_includes_media.php
r883 r903 30 30 31 31 function test_img_caption_shortcode_with_old_format() { 32 $result = img_caption_shortcode( 33 array( 'width' => 20, 'caption' => $this->caption ) 32 $result = img_caption_shortcode( 33 array( 'width' => 20, 'caption' => $this->caption ) 34 34 ); 35 35 $this->assertEquals( 2, preg_match_all( '/wp-caption/', $result, $_r ) ); … … 40 40 41 41 function test_img_caption_shortcode_with_old_format_id_and_align() { 42 $result = img_caption_shortcode( 43 array( 42 $result = img_caption_shortcode( 43 array( 44 44 'width' => 20, 45 45 'caption' => $this->caption, … … 54 54 55 55 function test_new_img_caption_shortcode_with_html_caption() { 56 $result = img_caption_shortcode( 57 array( 'width' => 20, 'caption' => $this->html_content ) 56 $result = img_caption_shortcode( 57 array( 'width' => 20, 'caption' => $this->html_content ) 58 58 ); 59 59 $our_preg = preg_quote( $this->html_content ); … … 63 63 64 64 function test_new_img_caption_shortcode_new_format() { 65 $result = img_caption_shortcode( 65 $result = img_caption_shortcode( 66 66 array( 'width' => 20 ), 67 67 $this->img_content . $this->html_content … … 76 76 function test_new_img_caption_shortcode_new_format_and_linked_image() { 77 77 $linked_image = "<a href='#'>{$this->img_content}</a>"; 78 $result = img_caption_shortcode( 78 $result = img_caption_shortcode( 79 79 array( 'width' => 20 ), 80 80 $linked_image . $this->html_content … … 89 89 function test_new_img_caption_shortcode_new_format_and_linked_image_with_newline() { 90 90 $linked_image = "<a href='#'>{$this->img_content}</a>"; 91 $result = img_caption_shortcode( 91 $result = img_caption_shortcode( 92 92 array( 'width' => 20 ), 93 93 $linked_image . "\n\n" . $this->html_content
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)