From 123446928de18dfdfd667e81e8a878cefbcb5feb Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Tue, 8 Apr 2025 10:01:54 -0500 Subject: [PATCH] Tests: Convert timestamp to int for comparison --- tests/includes/scheduler/class-test-actor.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/includes/scheduler/class-test-actor.php b/tests/includes/scheduler/class-test-actor.php index 49bd54596..3de845c48 100644 --- a/tests/includes/scheduler/class-test-actor.php +++ b/tests/includes/scheduler/class-test-actor.php @@ -318,7 +318,6 @@ public function test_actor_profile_update_sets_updated_attribute() { $activity = \json_decode( $post->post_content, true ); // Verify the updated attribute is set and matches the post's modified date. - $expected_updated = gmdate( 'Y-m-d\TH:i:s\Z', strtotime( $post->post_modified ) ); - $this->assertEqualsWithDelta( $expected_updated, $activity['updated'], 2, 'Updated attribute does not match post modified date.' ); + $this->assertEqualsWithDelta( strtotime( $post->post_modified ), strtotime( $activity['updated'] ), 2, 'Updated attribute does not match post modified date.' ); } }