diff --git a/tests/acceptance/bootstrap/SpacesContext.php b/tests/acceptance/bootstrap/SpacesContext.php index c21ffd2f06..d395867e48 100644 --- a/tests/acceptance/bootstrap/SpacesContext.php +++ b/tests/acceptance/bootstrap/SpacesContext.php @@ -1046,7 +1046,7 @@ class SpacesContext implements Context { string $grantedUser, string $role ): void { - $response = $this->listAllAvailableSpacesOfUser($user); + $response = $this->listAllAvailableSpacesOfUser($user, '$expand=root($expand=permissions)'); $this->featureContext->theHTTPStatusCodeShouldBe( 200, "Expected response status code should be 200", @@ -4618,7 +4618,7 @@ class SpacesContext implements Context { string $role, ?string $expirationDate = null ): void { - $response = $this->listAllAvailableSpacesOfUser($user); + $response = $this->listAllAvailableSpacesOfUser($user, '$expand=root($expand=permissions)'); $this->featureContext->theHTTPStatusCodeShouldBe( 200, "Expected response status code should be 200",