Changeset 42742 for trunk/tests/phpunit/tests/media.php
- Timestamp:
- 02/25/2018 06:42:26 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r42694 r42742 2387 2387 $url = wp_get_attachment_url( $post_id ); 2388 2388 2389 $uploads_dir = wp_upload_dir( '2010/01' ); 2390 2391 $expected = $uploads_dir['url'] . '/test-image-iptc.jpg'; 2392 2389 2393 // Clean up. 2390 2394 wp_delete_attachment( $post_id ); 2391 2395 wp_delete_post( $parent_id ); 2392 2396 2393 $this->assertSame( 'http://example.org/wp-content/uploads/2010/01/test-image-iptc.jpg', $url );2397 $this->assertSame( $expected, $url ); 2394 2398 } 2395 2399
Note: See TracChangeset
for help on using the changeset viewer.