]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove unused variables
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 28 May 2020 18:46:33 +0000 (20:46 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Fri, 29 May 2020 00:46:12 +0000 (02:46 +0200)
The step names were adjusted accordingly.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
build/integration/features/bootstrap/Sharing.php
build/integration/sharing_features/sharing-v1.feature

index 22c9fef9f7f455e174466575a44e1ff802a18208..0958ab5b64b1b6df6487b8bd9e7eeb5d3bd979b6 100644 (file)
@@ -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 {
index 51a627dc6dec918108e732bed1036e1564d728de..8440a2d874e928a5afec0f0ffda2336486276600 100644 (file)
@@ -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