Changeset 53771 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 07/24/2022 01:24:44 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r53559 r53771 503 503 504 504 /** 505 * @ticket 55877 506 * @covers ::wp_insert_post 507 */ 508 public function test_wp_insert_post_should_not_trigger_warning_for_pending_posts_with_unknown_cpt() { 509 $post_id = wp_insert_post( 510 array( 511 'post_title' => 'title', 512 'post_type' => 'unknown', 513 'post_status' => 'pending', 514 ) 515 ); 516 517 $this->assertIsNumeric( $post_id ); 518 $this->assertGreaterThan( 0, $post_id ); 519 } 520 521 /** 505 522 * @ticket 20451 506 523 */
Note: See TracChangeset
for help on using the changeset viewer.