client->call(Client::METHOD_POST, '/documentsdb', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], ], [ 'databaseId' => ID::custom('documentsdb-probe'), 'name' => 'Probe', ]); self::$documentsDBAvailable = $response['headers']['status-code'] < 500; if (self::$documentsDBAvailable) { $this->client->call(Client::METHOD_DELETE, '/documentsdb/documentsdb-probe', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], ]); } } if (!self::$documentsDBAvailable) { $this->markTestSkipped('DocumentsDB backend (MongoDB) is not available in this CI environment.'); } } }