Changeset 47122 for trunk/tests/phpunit/tests/user/wpDeleteUser.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/wpDeleteUser.php
r46586 r47122 66 66 ); 67 67 68 // insert a post and make sure the ID is ok68 // Insert a post and make sure the ID is OK. 69 69 $post_id = wp_insert_post( $post ); 70 70 $this->assertTrue( is_numeric( $post_id ) ); … … 82 82 ); 83 83 84 // insert a post and make sure the ID is ok84 // Insert a post and make sure the ID is OK. 85 85 $nav_id = wp_insert_post( $post ); 86 86 $this->assertTrue( is_numeric( $nav_id ) ); … … 100 100 $this->assertNotNull( get_post( $post_id ) ); 101 101 $this->assertEquals( 'trash', get_post( $post_id )->post_status ); 102 // nav_menu_item is delete_with_user = falseso the nav post should remain published.102 // 'nav_menu_item' is `delete_with_user = false` so the nav post should remain published. 103 103 $this->assertNotNull( get_post( $nav_id ) ); 104 104 $this->assertEquals( 'publish', get_post( $nav_id )->post_status );
Note: See TracChangeset
for help on using the changeset viewer.