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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-05-28 21:46:33 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-05-29 14:37:43 +0300
commit062525b4609a89307781c6dc6b222878a014f7ba (patch)
tree03358bd535f4ded1bff1249950bfbf4936da8f99 /build
parent6ca312eec9a5658473ace50641a4f366c47336e0 (diff)
Remove unused variables
The step names were adjusted accordingly. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/Sharing.php11
-rw-r--r--build/integration/sharing_features/sharing-v1.feature6
2 files changed, 7 insertions, 10 deletions
diff --git a/build/integration/features/bootstrap/Sharing.php b/build/integration/features/bootstrap/Sharing.php
index 22c9fef9f7f..0958ab5b64b 100644
--- a/build/integration/features/bootstrap/Sharing.php
+++ b/build/integration/features/bootstrap/Sharing.php
@@ -151,11 +151,9 @@ trait Sharing {
}
/**
- * @Then /^Public shared file "([^"]*)" can be downloaded$/
+ * @Then /^last link share can be downloaded$/
*/
- public function checkPublicSharedFile($filename) {
- $client = new Client();
- $options = [];
+ public function lastLinkShareCanBeDownloaded() {
if (count($this->lastShareData->data->element) > 0) {
$url = $this->lastShareData->data[0]->url;
} else {
@@ -166,10 +164,9 @@ trait Sharing {
}
/**
- * @Then /^Public shared file "([^"]*)" with password "([^"]*)" can be downloaded$/
+ * @Then /^last link share with password "([^"]*)" can be downloaded$/
*/
- public function checkPublicSharedFileWithPassword($filename, $password) {
- $options = [];
+ public function lastLinkShareWithPasswordCanBeDownloaded($password) {
if (count($this->lastShareData->data->element) > 0) {
$token = $this->lastShareData->data[0]->token;
} else {
diff --git a/build/integration/sharing_features/sharing-v1.feature b/build/integration/sharing_features/sharing-v1.feature
index 51a627dc6de..8440a2d874e 100644
--- a/build/integration/sharing_features/sharing-v1.feature
+++ b/build/integration/sharing_features/sharing-v1.feature
@@ -64,7 +64,7 @@ Feature: sharing
| shareType | 3 |
Then the OCS status code should be "100"
And the HTTP status code should be "200"
- And Public shared file "welcome.txt" can be downloaded
+ And last link share can be downloaded
Scenario: Creating a new public share with password
Given user "user0" exists
@@ -75,7 +75,7 @@ Feature: sharing
| password | publicpw |
Then the OCS status code should be "100"
And the HTTP status code should be "200"
- And Public shared file "welcome.txt" with password "publicpw" can be downloaded
+ And last link share with password "publicpw" can be downloaded
Scenario: Creating a new public share of a folder
Given user "user0" exists
@@ -108,7 +108,7 @@ Feature: sharing
| expireDate | +3 days |
Then the OCS status code should be "100"
And the HTTP status code should be "200"
- And Public shared file "welcome.txt" with password "publicpw" can be downloaded
+ And last link share with password "publicpw" can be downloaded
Scenario: Creating a new public share, updating its expiration date and getting its info
Given user "user0" exists