client->call(Client::METHOD_GET, '/health/queue/notifications', \array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertSame(200, $response['headers']['status-code']); $this->assertIsInt($response['body']['size']); $this->assertGreaterThanOrEqual(0, $response['body']['size']); } public function testHealthQueueNotificationsThresholdGuard(): void { $response = $this->client->call(Client::METHOD_GET, '/health/queue/notifications', \array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), ['threshold' => '0']); $this->assertContains($response['headers']['status-code'], [200, 503]); } public function testHealthQueueFailedAcceptsNotifications(): void { $response = $this->client->call(Client::METHOD_GET, '/health/queue/failed/v1-notifications', \array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertSame(200, $response['headers']['status-code']); $this->assertIsInt($response['body']['size']); } }