Changeset 51454 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 07/18/2021 02:10:24 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r51438 r51454 81 81 $id = wp_insert_post( $post ); 82 82 $this->assertIsNumeric( $id ); 83 $this->assert True( $id > 0);83 $this->assertGreaterThan( 0, $id ); 84 84 85 85 // Fetch the post and make sure it matches. … … 137 137 // dmp( _get_cron_array() ); 138 138 $this->assertIsNumeric( $id ); 139 $this->assert True( $id > 0);139 $this->assertGreaterThan( 0, $id ); 140 140 141 141 // Fetch the post and make sure it matches. … … 260 260 // dmp( _get_cron_array() ); 261 261 $this->assertIsNumeric( $id ); 262 $this->assert True( $id > 0);262 $this->assertGreaterThan( 0, $id ); 263 263 264 264 // Fetch the post and make sure it matches. … … 381 381 // dmp( _get_cron_array() ); 382 382 $this->assertIsNumeric( $id ); 383 $this->assert True( $id > 0);383 $this->assertGreaterThan( 0, $id ); 384 384 385 385 // Fetch the post and make sure it matches. … … 794 794 ); 795 795 $insert_post_id = wp_insert_post( $post_data, true, true ); 796 $this->assertTrue( ( is_int( $insert_post_id ) && $insert_post_id > 0 ) ); 796 $this->assertIsInt( $insert_post_id ); 797 $this->assertGreaterThan( 0, $insert_post_id ); 797 798 798 799 $post = get_post( $insert_post_id );
Note: See TracChangeset
for help on using the changeset viewer.