mirror of
https://github.com/appwrite/appwrite
synced 2026-04-28 08:57:57 +00:00
16 lines
558 B
PHP
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']);
|
|
}
|
|
}
|