Changeset 52010 for trunk/tests/phpunit/tests/post/attachments.php
- Timestamp:
- 11/04/2021 03:22:47 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/attachments.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/attachments.php
r51568 r52010 8 8 class Tests_Post_Attachments extends WP_UnitTestCase { 9 9 10 function tear_down() {10 public function tear_down() { 11 11 // Remove all uploads. 12 12 $this->remove_added_uploads(); … … 14 14 } 15 15 16 function test_insert_bogus_image() {16 public function test_insert_bogus_image() { 17 17 $filename = rand_str() . '.jpg'; 18 18 $contents = rand_str(); … … 22 22 } 23 23 24 function test_insert_image_no_thumb() {24 public function test_insert_image_no_thumb() { 25 25 26 26 // This image is smaller than the thumbnail size so it won't have one. … … 58 58 * @requires function imagejpeg 59 59 */ 60 function test_insert_image_thumb_only() {60 public function test_insert_image_thumb_only() { 61 61 update_option( 'medium_size_w', 0 ); 62 62 update_option( 'medium_size_h', 0 ); … … 109 109 * @requires function imagejpeg 110 110 */ 111 function test_insert_image_medium_sizes() {111 public function test_insert_image_medium_sizes() { 112 112 update_option( 'medium_size_w', 400 ); 113 113 update_option( 'medium_size_h', 0 ); … … 166 166 * @requires function imagejpeg 167 167 */ 168 function test_insert_image_delete() {168 public function test_insert_image_delete() { 169 169 update_option( 'medium_size_w', 400 ); 170 170 update_option( 'medium_size_h', 0 ); … … 214 214 * @ticket 21963 215 215 */ 216 function test_insert_image_without_guid() {216 public function test_insert_image_without_guid() { 217 217 // This image is smaller than the thumbnail size so it won't have one. 218 218 $filename = ( DIR_TESTDATA . '/images/test-image.jpg' ); … … 232 232 * @ticket 21963 233 233 */ 234 function test_update_attachment_fields() {234 public function test_update_attachment_fields() { 235 235 $filename = ( DIR_TESTDATA . '/images/test-image.jpg' ); 236 236 $contents = file_get_contents( $filename ); … … 258 258 * @ticket 29646 259 259 */ 260 function test_update_orphan_attachment_parent() {260 public function test_update_orphan_attachment_parent() { 261 261 $filename = ( DIR_TESTDATA . '/images/test-image.jpg' ); 262 262 $contents = file_get_contents( $filename );
Note: See TracChangeset
for help on using the changeset viewer.