Changeset 53464
- Timestamp:
- 06/04/2022 01:39:17 PM (3 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 3 edited
-
media.php (modified) (6 diffs)
-
post/thumbnails.php (modified) (1 diff)
-
rest-api/rest-schema-setup.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r53149 r53464 53 53 54 54 public static function tear_down_after_class() { 55 wp_delete_ post( self::$large_id, true );55 wp_delete_attachment( self::$large_id, true ); 56 56 parent::tear_down_after_class(); 57 57 } … … 1307 1307 1308 1308 // Clean up. 1309 wp_delete_attachment( $post_id );1309 wp_delete_attachment( $post_id, true ); 1310 1310 1311 1311 $this->assertSame( 'This is a comment. / Это комментарий. / Βλέπετε ένα σχόλιο.', $post->post_excerpt ); … … 1346 1346 1347 1347 // Clean up. 1348 wp_delete_attachment( $post_id );1348 wp_delete_attachment( $post_id, true ); 1349 1349 1350 1350 $this->assertSame( 'This is a test', $post->post_title ); … … 1725 1725 1726 1726 // Remove the attachment. 1727 wp_delete_attachment( $id );1727 wp_delete_attachment( $id, true ); 1728 1728 remove_filter( 'upload_dir', '_upload_dir_no_subdir' ); 1729 1729 } … … 2820 2820 2821 2821 // Clean up. 2822 wp_delete_attachment( $post_id );2823 wp_delete_post( $parent_id );2822 wp_delete_attachment( $post_id, true ); 2823 wp_delete_post( $parent_id, true ); 2824 2824 2825 2825 $this->assertSame( $expected, $url ); … … 2872 2872 2873 2873 // Clean up. 2874 wp_delete_attachment( $post_id );2875 wp_delete_post( $parent_id );2874 wp_delete_attachment( $post_id, true ); 2875 wp_delete_post( $parent_id, true ); 2876 2876 2877 2877 $this->assertSame( $expected, $url ); -
trunk/tests/phpunit/tests/post/thumbnails.php
r52010 r53464 28 28 29 29 public static function tear_down_after_class() { 30 wp_delete_ post( self::$attachment_id, true );30 wp_delete_attachment( self::$attachment_id, true ); 31 31 parent::tear_down_after_class(); 32 32 } -
trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php
r53152 r53464 521 521 wp_delete_post( $page_id, true ); 522 522 wp_delete_term( $tag_id, 'tags' ); 523 wp_delete_attachment( $media_id );523 wp_delete_attachment( $media_id, true ); 524 524 wp_delete_comment( $comment_id ); 525 525 }
Note: See TracChangeset
for help on using the changeset viewer.