Skip to content

Commit

Permalink
Merge pull request owncloud#9519 from owncloud/webdav
Browse files Browse the repository at this point in the history
[full-ci][tests-only] remove unused stepDef function related to download with range from WebDav.php
  • Loading branch information
phil-davis authored Jul 8, 2024
2 parents 2e0934a + a3bb4fd commit 4b05f35
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions tests/acceptance/features/bootstrap/WebDav.php
Original file line number Diff line number Diff line change
Expand Up @@ -882,18 +882,6 @@ public function theUserHasCopiedFileUsingTheAPI(string $fileSource, string $file
);
}

/**
* @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
Expand Down Expand Up @@ -1426,44 +1414,6 @@ public function contentOfFileForUserUsingPasswordShouldBePlusEndOfLine(
$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
*
Expand Down

0 comments on commit 4b05f35

Please sign in to comment.