Changeset 51587 for trunk/tests/phpunit/tests/comment.php
- Timestamp:
- 08/09/2021 07:08:09 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/comment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r51568 r51587 858 858 update_option( 'close_comments_days_old', 1 ); 859 859 860 $old_date = strtotime( '-25 hours' );861 $old_post_id = self::factory()->post->create( array( 'post_date' => strftime( '%Y-%m-%d %H:%M:%S', $old_date) ) );860 $old_date = date_create( '-25 hours' ); 861 $old_post_id = self::factory()->post->create( array( 'post_date' => date_format( $old_date, 'Y-m-d H:i:s' ) ) ); 862 862 863 863 $old_post_comment_status = _close_comments_for_old_post( true, $old_post_id );
Note: See TracChangeset
for help on using the changeset viewer.