@@ -202,6 +202,9 @@ discard block |
||
| 202 | 202 | } |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | + /** |
|
| 206 | + * @param string $shareToken |
|
| 207 | + */ |
|
| 205 | 208 | public function updateToRemoteToken(Wopi $wopi, $shareToken, $remoteServer, $remoteServerToken, $remoteWopi) { |
| 206 | 209 | $uid = $remoteWopi['editorUid'] . '@' . $remoteServer; |
| 207 | 210 | $wopi->setEditorUid($shareToken); |
@@ -213,6 +216,10 @@ discard block |
||
| 213 | 216 | return $wopi; |
| 214 | 217 | } |
| 215 | 218 | |
| 219 | + /** |
|
| 220 | + * @param string $userId |
|
| 221 | + * @param integer $targetFileId |
|
| 222 | + */ |
|
| 216 | 223 | public function getTokenForTemplate(File $templateFile, $userId, $targetFileId, $direct = false) { |
| 217 | 224 | $owneruid = $userId; |
| 218 | 225 | $editoruid = $userId; |
@@ -255,6 +255,11 @@ discard block |
||
| 255 | 255 | return $this->davPath . '/files/' . $user; |
| 256 | 256 | } |
| 257 | 257 | |
| 258 | + /** |
|
| 259 | + * @param string $user |
|
| 260 | + * @param string $method |
|
| 261 | + * @param string $path |
|
| 262 | + */ |
|
| 258 | 263 | public function makeDavRequest($user, $method, $path, $headers, $body = null) { |
| 259 | 264 | $fullUrl = $this->baseUrl . $this->getDavFilesPath($user) . "$path"; |
| 260 | 265 | |
@@ -281,7 +286,6 @@ discard block |
||
| 281 | 286 | |
| 282 | 287 | /** |
| 283 | 288 | * @Given Using web as guest |
| 284 | - * @param string $user |
|
| 285 | 289 | */ |
| 286 | 290 | public function usingWebasGuest() { |
| 287 | 291 | return $this->loggingInUsingWebAs(null); |
@@ -77,6 +77,9 @@ |
||
| 77 | 77 | $this->assertStatusCode($response, 200); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | + /** |
|
| 81 | + * @param string $user |
|
| 82 | + */ |
|
| 80 | 83 | private function userExists($user) { |
| 81 | 84 | $client = new Client(); |
| 82 | 85 | $options = [ |