diff options
author | Sergio Bertolin <sbertolin@solidgear.es> | 2015-11-19 10:28:38 +0000 |
---|---|---|
committer | Sergio Bertolin <sbertolin@solidgear.es> | 2015-11-19 12:45:13 +0000 |
commit | 81e0a3ea2211cd2d3ea9d543c2523970be17867c (patch) | |
tree | fb294de19840b7dbaa597ccbe17d79715773dd00 /build/integration/features/bootstrap/FeatureContext.php | |
parent | 630ba2fd0948b01db16b258a064bf3ca02302d1d (diff) | |
download | nextcloud-server-81e0a3ea2211cd2d3ea9d543c2523970be17867c.tar.gz nextcloud-server-81e0a3ea2211cd2d3ea9d543c2523970be17867c.zip |
Added test and logic for deleting all group shares
Diffstat (limited to 'build/integration/features/bootstrap/FeatureContext.php')
-rw-r--r-- | build/integration/features/bootstrap/FeatureContext.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/build/integration/features/bootstrap/FeatureContext.php b/build/integration/features/bootstrap/FeatureContext.php index 56b81d631a7..9daebd1e165 100644 --- a/build/integration/features/bootstrap/FeatureContext.php +++ b/build/integration/features/bootstrap/FeatureContext.php @@ -961,8 +961,7 @@ class FeatureContext implements Context, SnippetAcceptingContext { /** * @Then /^last share_id is included in the answer$/ */ - public function findingLastShareID(){ - print_r($this->response->xml()); + public function checkingLastShareIDIsIncluded(){ $share_id = $this->lastShareData->data[0]->id; if (!$this->isFieldInResponse('id', $share_id)){ PHPUnit_Framework_Assert::fail("Share id $share_id not found in response"); @@ -970,6 +969,16 @@ class FeatureContext implements Context, SnippetAcceptingContext { } /** + * @Then /^last share_id is not included in the answer$/ + */ + public function checkingLastShareIDIsNotIncluded(){ + $share_id = $this->lastShareData->data[0]->id; + if ($this->isFieldInResponse('id', $share_id)){ + PHPUnit_Framework_Assert::fail("Share id $share_id has been found in response"); + } + } + + /** * @Then /^Share fields of last share match with$/ * @param \Behat\Gherkin\Node\TableNode|null $formData */ |