Changeset 34255 for trunk/tests/phpunit/tests/post/attachments.php
- Timestamp:
- 09/17/2015 12:36:12 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/attachments.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/attachments.php
r33188 r34255 513 513 $upload = wp_upload_bits( basename( $filename ), null, $contents ); 514 514 515 remove_filter( 'upload_mimes', array( $this, 'blacklist_jpg_mime_type' ) ); 516 515 517 $this->assertNotEmpty( $upload['error'] ); 516 517 remove_filter( 'upload_mimes', array( $this, 'blacklist_jpg_mime_type' ) );518 518 } 519 519 … … 527 527 return $mimes; 528 528 } 529 530 /** 531 * @ticket 33012 532 */ 533 public function test_wp_mime_type_icon() { 534 $icon = wp_mime_type_icon(); 535 536 $this->assertContains( 'images/media/default.png', $icon ); 537 } 538 539 /** 540 * @ticket 33012 541 */ 542 public function test_wp_mime_type_icon_video() { 543 $icon = wp_mime_type_icon( 'video/mp4' ); 544 545 $this->assertContains( 'images/media/video.png', $icon ); 546 } 529 547 }
Note: See TracChangeset
for help on using the changeset viewer.