appwrite/tests/e2e/Services/Health/PubSubTest.php
2026-01-01 09:54:13 +00:00

16 lines
558 B
PHP

<?php
namespace Tests\E2E\Services\Health;
class PubSubTest extends HealthBase
{
public function testPubSubSuccess(): void
{
$response = $this->callGet('/health/pubsub');
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertIsArray($response['body']['statuses']);
$this->assertIsInt($response['body']['statuses'][0]['ping']);
$this->assertLessThan(100, $response['body']['statuses'][0]['ping']);
$this->assertEquals('pass', $response['body']['statuses'][0]['status']);
}
}