Skip to content

Commit f8f4760

Browse files
author
Rafael Marinho
committed
fix tests
1 parent 3280545 commit f8f4760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/IntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ public function testCreateSharedLocation()
17871787
'latitude' => 40.7128,
17881788
'longitude' => -74.0060,
17891789
'created_by_device_id' => 'test-device-123',
1790-
'end_at' => time() + 3600 // 1 hour from now
1790+
'end_at' => new DateTime('+1 hour') // 1 hour from now
17911791
];
17921792

17931793
$message = [
@@ -1817,7 +1817,7 @@ public function testUpdateSharedLocation()
18171817
'latitude' => 40.7128,
18181818
'longitude' => -74.0060,
18191819
'created_by_device_id' => 'test-device-123',
1820-
'end_at' => time() + 3600
1820+
'end_at' => new DateTime('+1 hour')
18211821
];
18221822

18231823
$message = [

0 commit comments

Comments
 (0)