Changeset 54088 for trunk/tests/phpunit/tests/post/wpInsertPost.php
- Timestamp:
- 09/06/2022 10:03:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/wpInsertPost.php
r53883 r54088 1426 1426 wp_set_current_user( self::$user_ids['contributor'] ); 1427 1427 1428 $post_id = $this->factory()->post->create(1428 $post_id = self::factory()->post->create( 1429 1429 array( 1430 1430 'post_title' => 'Jefferson claim: nice to have Washington on your side.', … … 1465 1465 wp_set_current_user( self::$user_ids['administrator'] ); 1466 1466 1467 $post_id = $this->factory()->post->create(1467 $post_id = self::factory()->post->create( 1468 1468 array( 1469 1469 'post_title' => 'What is the Conner Project?', … … 1506 1506 wp_set_current_user( self::$user_ids['administrator'] ); 1507 1507 1508 $post_id = $this->factory()->post->create(1508 $post_id = self::factory()->post->create( 1509 1509 array( 1510 1510 'post_title' => 'Everything is legal in New Jersey', … … 1543 1543 $now = new DateTimeImmutable( 'now', new DateTimeZone( 'UTC' ) ); 1544 1544 1545 $post_id = $this->factory()->post->create(1545 $post_id = self::factory()->post->create( 1546 1546 array( 1547 1547 'post_date_gmt' => $now->modify( '-1 year' )->format( 'Y-m-d H:i:s' ), … … 1552 1552 $this->assertSame( 'publish', get_post_status( $post_id ) ); 1553 1553 1554 $post_id = $this->factory()->post->create(1554 $post_id = self::factory()->post->create( 1555 1555 array( 1556 1556 'post_date_gmt' => $now->modify( '+50 years' )->format( 'Y-m-d H:i:s' ),
Note: See TracChangeset
for help on using the changeset viewer.