mirror of
https://github.com/appwrite/appwrite
synced 2026-04-28 17:07:22 +00:00
17 lines
572 B
PHP
17 lines
572 B
PHP
<?php
|
|
|
|
namespace Tests\E2E\Services\Health;
|
|
|
|
class TimeTest extends HealthBase
|
|
{
|
|
public function testTimeSuccess(): void
|
|
{
|
|
$response = $this->callGet('/health/time');
|
|
$this->assertEquals(200, $response['headers']['status-code']);
|
|
$this->assertIsInt($response['body']['remoteTime']);
|
|
$this->assertIsInt($response['body']['localTime']);
|
|
$this->assertNotEmpty($response['body']['remoteTime']);
|
|
$this->assertNotEmpty($response['body']['localTime']);
|
|
$this->assertLessThan(10, $response['body']['diff']);
|
|
}
|
|
}
|