mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-07 21:00:30 -06:00
Merge pull request #9519 from owncloud/webdav
[full-ci][tests-only] remove unused stepDef function related to download with range from WebDav.php
This commit is contained in:
@@ -882,18 +882,6 @@ trait WebDav {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When /^the user downloads file "([^"]*)" with range "([^"]*)" using the WebDAV API$/
|
||||
*
|
||||
* @param string $fileSource
|
||||
* @param string $range
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function theUserDownloadsFileWithRange(string $fileSource, string $range):void {
|
||||
$this->setResponse($this->downloadFileWithRange($this->currentUser, $fileSource, $range));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $user
|
||||
* @param string $fileSource
|
||||
@@ -1426,44 +1414,6 @@ trait WebDav {
|
||||
$this->checkDownloadedContentMatches("$content\n", '', $response);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then /^the downloaded content when downloading file "([^"]*)" with range "([^"]*)" should be "([^"]*)"$/
|
||||
*
|
||||
* @param string $fileSource
|
||||
* @param string $range
|
||||
* @param string $content
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function downloadedContentWhenDownloadingWithRangeShouldBe(
|
||||
string $fileSource,
|
||||
string $range,
|
||||
string $content
|
||||
):void {
|
||||
$this->checkDownloadedContentMatches($content);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then /^the downloaded content when downloading file "([^"]*)" for user "([^"]*)" with range "([^"]*)" should be "([^"]*)"$/
|
||||
*
|
||||
* @param string $fileSource
|
||||
* @param string $user
|
||||
* @param string $range
|
||||
* @param string $content
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function downloadedContentWhenDownloadingForUserWithRangeShouldBe(
|
||||
string $fileSource,
|
||||
string $user,
|
||||
string $range,
|
||||
string $content
|
||||
):void {
|
||||
$user = $this->getActualUsername($user);
|
||||
$response = $this->downloadFileWithRange($user, $fileSource, $range);
|
||||
$this->checkDownloadedContentMatches($content, '', $response);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When the user downloads the file :fileName using the WebDAV API
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user