Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests-only] Refactor public link overwrite function #39097

Merged
merged 1 commit into from
Aug 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions tests/acceptance/features/bootstrap/PublicWebDavContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,25 +548,28 @@ public function thePublicHasUploadedFileWithPasswordAndContentUsingPublicWebDAVA
/**
* @param string $filename target file name
* @param string $body content to upload
* @param string $publicWebDAVAPIVersion
*
* @return void
*/
public function publiclyOverwritingContent($filename, $body = 'test') {
$this->publicUploadContent($filename, '', $body, false);
public function publiclyOverwritingContent($filename, $body = 'test', $publicWebDAVAPIVersion='old') {
$this->publicUploadContent($filename, '', $body, false, [], $publicWebDAVAPIVersion);
}

/**
* @When the public overwrites file :filename with content :body using the old WebDAV API
* @When the public overwrites file :filename with content :body using the :type WebDAV API
*
* @param string $filename target file name
* @param string $body content to upload
* @param string $publicWebDAVAPIVersion
*
* @return void
*/
public function thePublicOverwritesFileWithContentUsingOldWebDavApi($filename, $body = 'test') {
public function thePublicOverwritesFileWithContentUsingWebDavApi($filename, $body = 'test', $publicWebDAVAPIVersion = 'old') {
$this->publiclyOverwritingContent(
$filename,
$body
$body,
$publicWebDAVAPIVersion
);
}

Expand Down