Changeset 43571 for trunk/tests/phpunit/tests/post/thumbnails.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/thumbnails.php
r42382 r43571 19 19 $file = DIR_TESTDATA . '/images/canola.jpg'; 20 20 self::$attachment_id = $factory->attachment->create_upload_object( 21 $file, self::$post->ID, array( 21 $file, 22 self::$post->ID, 23 array( 22 24 'post_mime_type' => 'image/jpeg', 23 25 ) … … 95 97 $post_id = self::factory()->post->create(); 96 98 $attachment_id = self::factory()->attachment->create_object( 97 'image.jpg', $post_id, array( 99 'image.jpg', 100 $post_id, 101 array( 98 102 'post_mime_type' => 'image/jpeg', 99 103 'post_type' => 'attachment', … … 113 117 $post_id = self::factory()->post->create(); 114 118 $attachment_id = self::factory()->attachment->create_object( 115 'image.jpg', $post_id, array( 119 'image.jpg', 120 $post_id, 121 array( 116 122 'post_mime_type' => 'image/jpeg', 117 123 'post_type' => 'attachment', … … 133 139 $post_id = self::factory()->post->create(); 134 140 $attachment_id = self::factory()->attachment->create_object( 135 'image.jpg', $post_id, array( 141 'image.jpg', 142 $post_id, 143 array( 136 144 'post_mime_type' => 'image/jpeg', 137 145 'post_type' => 'attachment', … … 152 160 153 161 $expected = wp_get_attachment_image( 154 self::$attachment_id, 'post-thumbnail', false, array( 162 self::$attachment_id, 163 'post-thumbnail', 164 false, 165 array( 155 166 'class' => 'attachment-post-thumbnail size-post-thumbnail wp-post-image', 156 167 ) … … 177 188 178 189 $expected = wp_get_attachment_image( 179 self::$attachment_id, 'post-thumbnail', false, array( 190 self::$attachment_id, 191 'post-thumbnail', 192 false, 193 array( 180 194 'class' => 'attachment-post-thumbnail size-post-thumbnail wp-post-image', 181 195 )
Note: See TracChangeset
for help on using the changeset viewer.