Changeset 1262 in tests
- Timestamp:
- 04/22/2013 03:28:51 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/media.php
r1260 r1262 270 270 $this->assertEquals( $image, $this->img_url ); 271 271 $this->assertEquals( $blob, $imgless ); 272 273 $linked_html = '<a href="http://woo.com">' . $this->img_html . '</a>'; 274 $blob = "This is a sentence that will all of a sudden contain $linked_html"; 275 $image = get_content_image( $blob ); 276 $this->assertEquals( $image, $linked_html ); 277 278 $captioned_html = '[caption width="300"]<a href="http://woo.com">' . $this->img_html . '</a> A Caption[/caption]'; 279 $blob = "This is a sentence that will all of a sudden contain $captioned_html"; 280 $result = '<div class="wp-caption alignnone" style="width: 310px"><a href="http://woo.com"><img src="http://example.org/wp-content/uploads/image.jpg"/></a><p class="wp-caption-text">A Caption</p></div>'; 281 $image = get_content_image( $blob ); 282 $this->assertEquals( $image, $result ); 272 283 } 273 284
Note: See TracChangeset
for help on using the changeset viewer.