Changeset 58248 for trunk/tests/phpunit/tests/post/attachments.php
- Timestamp:
- 05/30/2024 01:01:44 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/attachments.php
r54226 r58248 520 520 $this->assertStringContainsString( 'images/media/video.png', $icon ); 521 521 } 522 523 /** 524 * @ticket 60610 525 */ 526 public function test_wp_mime_type_icon_video_with_preferred_ext() { 527 $icon1 = wp_mime_type_icon( 'video/mp4', '.png' ); // Added `$preferred_ext` parameter. 528 $icon2 = wp_mime_type_icon( 'video/mp4', 'png' ); // Added `$preferred_ext` parameter without period. 529 530 $this->assertStringContainsString( 'images/media/video.png', $icon1, 'Mime type icon should be correctly returned with ".png" argument.' ); 531 $this->assertStringContainsString( 'images/media/video.png', $icon2, 'Mime type icon should be correctly returned with "png" argument.' ); 532 } 522 533 }
Note: See TracChangeset
for help on using the changeset viewer.