Changeset 45588 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 07/02/2019 04:43:01 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r44454 r45588 49 49 global $current_user, $user_ID; 50 50 51 $current_user = $user_ID = null; 51 $current_user = null; 52 $user_ID = null; 52 53 } 53 54 … … 125 126 126 127 // insert a post and make sure the ID is ok 127 $id = $this->post_ids[] = wp_insert_post( $post ); 128 $id = wp_insert_post( $post ); 129 $this->post_ids[] = $id; 128 130 #dmp(_get_cron_array()); 129 131 $this->assertTrue( is_numeric( $id ) ); … … 159 161 160 162 // insert a post and make sure the ID is ok 161 $id = $this->post_ids[] = wp_insert_post( $post ); 163 $id = wp_insert_post( $post ); 164 $this->post_ids[] = $id; 162 165 163 166 // fetch the post and make sure has the correct date and status … … 201 204 202 205 // insert a post and make sure the ID is ok 203 $id = $this->post_ids[] = wp_insert_post( $post ); 206 $id = wp_insert_post( $post ); 207 $this->post_ids[] = $id; 204 208 205 209 // fetch the post and make sure has the correct date and status … … 241 245 242 246 // insert a post and make sure the ID is ok 243 $id = $this->post_ids[] = wp_insert_post( $post ); 247 $id = wp_insert_post( $post ); 248 $this->post_ids[] = $id; 244 249 #dmp(_get_cron_array()); 245 250 $this->assertTrue( is_numeric( $id ) ); … … 273 278 274 279 // insert a post and make sure the ID is ok 275 $id = $this->post_ids[] = wp_insert_post( $post ); 280 $id = wp_insert_post( $post ); 281 $this->post_ids[] = $id; 276 282 277 283 // fetch the post and make sure has the correct date and status … … 314 320 315 321 // insert a post and make sure the ID is ok 316 $id = $this->post_ids[] = wp_insert_post( $post ); 322 $id = wp_insert_post( $post ); 323 $this->post_ids[] = $id; 317 324 318 325 // fetch the post and make sure has the correct date and status … … 354 361 355 362 // insert a post and make sure the ID is ok 356 $id = $this->post_ids[] = wp_insert_post( $post ); 363 $id = wp_insert_post( $post ); 364 $this->post_ids[] = $id; 357 365 #dmp(_get_cron_array()); 358 366 $this->assertTrue( is_numeric( $id ) ); … … 408 416 409 417 // insert a post and make sure the ID is ok 410 $id = $this->post_ids[] = wp_insert_post( $post ); 418 $id = wp_insert_post( $post ); 419 $this->post_ids[] = $id; 411 420 412 421 // fetch the post and make sure has the correct date and status … … 512 521 513 522 // insert a post and make sure the ID is ok 514 $id = $this->post_ids[] = wp_insert_post( $post ); 523 $id = wp_insert_post( $post ); 524 $this->post_ids[] = $id; 515 525 516 526 // check that there's a publish_future_post job scheduled at the right time … … 541 551 542 552 // insert a post and make sure the ID is ok 543 $id = $this->post_ids[] = wp_insert_post( $post ); 553 $id = wp_insert_post( $post ); 554 $this->post_ids[] = $id; 544 555 545 556 $plink = get_permalink( $id );
Note: See TracChangeset
for help on using the changeset viewer.