Changeset 1027 in tests
- Timestamp:
- 09/20/2012 07:52:16 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/post.php
r1026 r1027 358 358 ); 359 359 360 $insert_post = wp_insert_post( $post ); 360 // Test both return paths with or without WP_Error 361 $insert_post = wp_insert_post( $post, true ); 361 362 $this->assertTrue( is_wp_error( $insert_post ), 'Did not get a WP_Error back from wp_insert_post' ); 362 363 $this->assertEquals( 'invalid_date', $insert_post->get_error_code() ); 363 364 365 $insert_post = wp_insert_post( $post ); 366 $this->assertEquals( 0, $insert_post ); 364 367 } 365 368
Note: See TracChangeset
for help on using the changeset viewer.