Remove unused variables
The step names were adjusted accordingly. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
6ca312eec9
commit
062525b460
|
@ -151,11 +151,9 @@ trait Sharing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Then /^Public shared file "([^"]*)" can be downloaded$/
|
* @Then /^last link share can be downloaded$/
|
||||||
*/
|
*/
|
||||||
public function checkPublicSharedFile($filename) {
|
public function lastLinkShareCanBeDownloaded() {
|
||||||
$client = new Client();
|
|
||||||
$options = [];
|
|
||||||
if (count($this->lastShareData->data->element) > 0) {
|
if (count($this->lastShareData->data->element) > 0) {
|
||||||
$url = $this->lastShareData->data[0]->url;
|
$url = $this->lastShareData->data[0]->url;
|
||||||
} else {
|
} 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) {
|
public function lastLinkShareWithPasswordCanBeDownloaded($password) {
|
||||||
$options = [];
|
|
||||||
if (count($this->lastShareData->data->element) > 0) {
|
if (count($this->lastShareData->data->element) > 0) {
|
||||||
$token = $this->lastShareData->data[0]->token;
|
$token = $this->lastShareData->data[0]->token;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -64,7 +64,7 @@ Feature: sharing
|
||||||
| shareType | 3 |
|
| shareType | 3 |
|
||||||
Then the OCS status code should be "100"
|
Then the OCS status code should be "100"
|
||||||
And the HTTP status code should be "200"
|
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
|
Scenario: Creating a new public share with password
|
||||||
Given user "user0" exists
|
Given user "user0" exists
|
||||||
|
@ -75,7 +75,7 @@ Feature: sharing
|
||||||
| password | publicpw |
|
| password | publicpw |
|
||||||
Then the OCS status code should be "100"
|
Then the OCS status code should be "100"
|
||||||
And the HTTP status code should be "200"
|
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
|
Scenario: Creating a new public share of a folder
|
||||||
Given user "user0" exists
|
Given user "user0" exists
|
||||||
|
@ -108,7 +108,7 @@ Feature: sharing
|
||||||
| expireDate | +3 days |
|
| expireDate | +3 days |
|
||||||
Then the OCS status code should be "100"
|
Then the OCS status code should be "100"
|
||||||
And the HTTP status code should be "200"
|
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
|
Scenario: Creating a new public share, updating its expiration date and getting its info
|
||||||
Given user "user0" exists
|
Given user "user0" exists
|
||||||
|
|
Loading…
Reference in New Issue