Changeset 55019 for trunk/tests/phpunit/tests/post/wpInsertPost.php
- Timestamp:
- 12/28/2022 02:07:16 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/wpInsertPost.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/wpInsertPost.php
r54889 r55019 1193 1193 ) 1194 1194 ); 1195 $this->assert Same( 0,$post_id );1195 $this->assertWPError( $post_id ); 1196 1196 1197 1197 $post_id = self::factory()->post->create( … … 1202 1202 ) 1203 1203 ); 1204 $this->assert Same( 0,$post_id );1204 $this->assertWPError( $post_id ); 1205 1205 1206 1206 // Empty post_date_gmt without floating status … … 1211 1211 ) 1212 1212 ); 1213 $this->assert Same( 0,$post_id );1213 $this->assertWPError( $post_id ); 1214 1214 1215 1215 $post_id = self::factory()->post->create( … … 1220 1220 ) 1221 1221 ); 1222 $this->assert Same( 0,$post_id );1222 $this->assertWPError( $post_id ); 1223 1223 1224 1224 // Valid post_date_gmt … … 1229 1229 ) 1230 1230 ); 1231 $this->assert Same( 0,$post_id );1231 $this->assertWPError( $post_id ); 1232 1232 1233 1233 // Invalid post_date_gmt … … 1238 1238 ) 1239 1239 ); 1240 $this->assert Same( 0,$post_id );1240 $this->assertWPError( $post_id ); 1241 1241 } 1242 1242
Note: See TracChangeset
for help on using the changeset viewer.