Changeset 48952 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 09/07/2020 03:12:17 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r48939 r48952 1353 1353 1354 1354 $post = get_post( $post_id ); 1355 self::assertEquals ( strtotime( gmdate( 'Y-m-d H:i:s' ) ), strtotime( $post->post_date_gmt ), 'The dates should be equal', 2);1355 self::assertEqualsWithDelta( strtotime( gmdate( 'Y-m-d H:i:s' ) ), strtotime( $post->post_date_gmt ), 2, 'The dates should be equal' ); 1356 1356 } 1357 1357
Note: See TracChangeset
for help on using the changeset viewer.