diff options
Diffstat (limited to 'build/integration/features')
-rw-r--r-- | build/integration/features/bootstrap/FederationContext.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/integration/features/bootstrap/FederationContext.php b/build/integration/features/bootstrap/FederationContext.php index 538dfb56cd3..38fb6dd6b39 100644 --- a/build/integration/features/bootstrap/FederationContext.php +++ b/build/integration/features/bootstrap/FederationContext.php @@ -195,7 +195,7 @@ class FederationContext implements Context, SnippetAcceptingContext { $this->usingServer('LOCAL'); $this->sendRequestForJSON('GET', '/apps/federation/trusted-servers'); $this->theHTTPStatusCodeShouldBe('200'); - $trustedServersIDs = array_map(fn ($server) => $server->id, json_decode($this->response->getBody())->data); + $trustedServersIDs = array_map(fn ($server) => $server->id, json_decode($this->response->getBody())->ocs->data); foreach ($trustedServersIDs as $id) { $this->sendRequestForJSON('DELETE', '/apps/federation/trusted-servers/' . $id); $this->theHTTPStatusCodeShouldBe('200'); @@ -205,7 +205,7 @@ class FederationContext implements Context, SnippetAcceptingContext { $this->usingServer('REMOTE'); $this->sendRequestForJSON('GET', '/apps/federation/trusted-servers'); $this->theHTTPStatusCodeShouldBe('200'); - $trustedServersIDs = array_map(fn ($server) => $server->id, json_decode($this->response->getBody())->data); + $trustedServersIDs = array_map(fn ($server) => $server->id, json_decode($this->response->getBody())->ocs->data); foreach ($trustedServersIDs as $id) { $this->sendRequestForJSON('DELETE', '/apps/federation/trusted-servers/' . $id); $this->theHTTPStatusCodeShouldBe('200'); |