Changeset 60971
- Timestamp:
- 10/19/2025 12:10:22 AM (7 weeks ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r60911 r60971 223 223 224 224 public function test_new_img_caption_shortcode_with_html_caption() { 225 $mark = "\u{203B}"; 226 227 $this->assertStringNotContainsString( 228 self::HTML_CONTENT, 229 $mark, 230 'Test caption content should not contain the mark surround it: check test setup.' 231 ); 232 225 233 $result = img_caption_shortcode( 226 234 array( 227 235 'width' => 20, 228 'caption' => self::HTML_CONTENT,236 'caption' => $mark . self::HTML_CONTENT . $mark, 229 237 ) 230 238 ); 231 239 232 $this->assertSame( 1, substr_count( $result, self::HTML_CONTENT ) ); 240 $result_chunks = explode( $mark, $result ); 241 $this->assertSame( 242 3, 243 count( $result_chunks ), 244 'Expected to find embedded caption inside marks, but failed to do so.' 245 ); 246 247 $this->assertEqualHTML( 248 self::HTML_CONTENT, 249 $result_chunks[1], 250 '<body>', 251 'Should have embedded the caption inside the image output.' 252 ); 233 253 } 234 254
Note: See TracChangeset
for help on using the changeset viewer.