Skip to content

Commit 591e3b6

Browse files
authored
Merge pull request #36566 from owncloud/delete-public_link_share-non-test
Remove '1 link share per file/folder' old test
2 parents a3ab953 + e38487c commit 591e3b6

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

tests/acceptance/features/apiShareManagementBasic/createShare.feature

-11
Original file line numberDiff line numberDiff line change
@@ -678,17 +678,6 @@ Feature: sharing
678678
| 1 | 403 | 200 |
679679
| 2 | 403 | 403 |
680680

681-
@public_link_share-feature-required
682-
Scenario: Only allow 1 link share per file/folder
683-
Given using OCS API version "1"
684-
And as user "user0"
685-
And the user has created a public link share with settings
686-
| path | welcome.txt |
687-
And the last share id has been remembered
688-
When the user creates a public link share using the sharing API with settings
689-
| path | welcome.txt |
690-
Then the share ids should match
691-
692681
@smokeTest
693682
Scenario: unique target names for incoming shares
694683
Given using OCS API version "1"

tests/acceptance/features/bootstrap/Sharing.php

-21
Original file line numberDiff line numberDiff line change
@@ -1626,27 +1626,6 @@ public function userRemovesAllSharesFromTheFileNamed($user, $fileName) {
16261626
}
16271627
}
16281628

1629-
/**
1630-
* @Given the last share id has been remembered
1631-
*
1632-
* @return void
1633-
*/
1634-
public function rememberLastShareId() {
1635-
$this->savedShareId = $this->lastShareData['data']['id'];
1636-
}
1637-
1638-
/**
1639-
* @Then the share ids should match
1640-
*
1641-
* @return void
1642-
* @throws \Exception
1643-
*/
1644-
public function shareIdsShouldMatch() {
1645-
if ($this->savedShareId !== $this->lastShareData['data']['id']) {
1646-
throw new \Exception('Expected the same link share to be returned');
1647-
}
1648-
}
1649-
16501629
/**
16511630
* Returns shares of a file or folders as an array of elements
16521631
*

0 commit comments

Comments
 (0)