diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-04-15 12:22:34 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-04-16 15:03:52 +0200 |
commit | 771ad85f859ccaeb815f0ff5256dfde36ce589c6 (patch) | |
tree | f48fc22d64d297ab990a7b5af06e9771855f0a7b /build/integration/features/bootstrap/Sharing.php | |
parent | 4e88cd3aae0b1c8e662197dd10e2e65ffe8cf489 (diff) | |
download | nextcloud-server-771ad85f859ccaeb815f0ff5256dfde36ce589c6.tar.gz nextcloud-server-771ad85f859ccaeb815f0ff5256dfde36ce589c6.zip |
Add integration tests for updating folder shares
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'build/integration/features/bootstrap/Sharing.php')
-rw-r--r-- | build/integration/features/bootstrap/Sharing.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/Sharing.php b/build/integration/features/bootstrap/Sharing.php index 9a3c00af489..8fcbbb2fcc1 100644 --- a/build/integration/features/bootstrap/Sharing.php +++ b/build/integration/features/bootstrap/Sharing.php @@ -42,6 +42,9 @@ trait Sharing { /** @var SimpleXMLElement */ private $lastShareData = null; + /** @var SimpleXMLElement[] */ + private $storedShareData = []; + /** @var int */ private $savedShareId = null; @@ -86,6 +89,20 @@ trait Sharing { } /** + * @When /^save the last share data as "([^"]*)"$/ + */ + public function saveLastShareData($name) { + $this->storedShareData[$name] = $this->lastShareData; + } + + /** + * @When /^restore the last share data from "([^"]*)"$/ + */ + public function restoreLastShareData($name) { + $this->lastShareData = $this->storedShareData[$name]; + } + + /** * @When /^creating a share with$/ * @param \Behat\Gherkin\Node\TableNode|null $body */ |