Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features/bootstrap/RichDocumentsContext.php')
-rw-r--r--tests/features/bootstrap/RichDocumentsContext.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/features/bootstrap/RichDocumentsContext.php b/tests/features/bootstrap/RichDocumentsContext.php
index cea95325..20cf8bf4 100644
--- a/tests/features/bootstrap/RichDocumentsContext.php
+++ b/tests/features/bootstrap/RichDocumentsContext.php
@@ -215,4 +215,14 @@ class RichDocumentsContext implements Context
$this->wopiToken = $result['token'];
$this->wopiContext->setWopiParameters($this->currentServer, $this->fileId, $this->wopiToken);
}
+
+ /**
+ * @When /^the guest updates the display name to "([^"]*)"$/
+ */
+ public function updateTheGuestDisplayName($displayName) {
+ $this->serverContext->sendOCSRequest('POST', 'apps/richdocuments/api/v1/wopi/guestname', [
+ 'access_token' => $this->wopiContext->getWopiToken(),
+ 'guestName' => $displayName,
+ ], [ 'auth' => null ]);
+ }
}