mirror of
https://github.com/owncloud/ocis
synced 2026-04-26 01:35:25 +02:00
added test for user trying to accept federation share invitation from same instance
This commit is contained in:
@@ -178,6 +178,29 @@ class OcmContext implements Context {
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(200, '', $response);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When :user tries to accept the federation share invitation from same instance
|
||||
*
|
||||
* @param string $user
|
||||
*
|
||||
* @return void
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function triesToAcceptTheFederationShareInvitationFromSameInstance(string $user): void {
|
||||
$providerDomain = $this->featureContext->getLocalBaseUrlWithoutScheme();
|
||||
$token = $this->getLastFederatedInvitationToken();
|
||||
$this->featureContext->setResponse(
|
||||
OcmHelper::acceptInvitation(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$this->featureContext->getStepLineRef(),
|
||||
$user,
|
||||
$this->featureContext->getPasswordForUser($user),
|
||||
$token,
|
||||
$providerDomain
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $user
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user