diff options
author | Sergio Bertolin <sbertolin@solidgear.es> | 2015-11-19 09:36:56 +0000 |
---|---|---|
committer | Sergio Bertolin <sbertolin@solidgear.es> | 2015-11-19 12:45:12 +0000 |
commit | 630ba2fd0948b01db16b258a064bf3ca02302d1d (patch) | |
tree | 0c6a2f8f1673c2a147566c9229520e1d35e7a233 /build/integration/features/bootstrap/FeatureContext.php | |
parent | a990e0ac1d5a50618ed976e3354e47e443277de9 (diff) | |
download | nextcloud-server-630ba2fd0948b01db16b258a064bf3ca02302d1d.tar.gz nextcloud-server-630ba2fd0948b01db16b258a064bf3ca02302d1d.zip |
Added test for shared_with_me parameter
Diffstat (limited to 'build/integration/features/bootstrap/FeatureContext.php')
-rw-r--r-- | build/integration/features/bootstrap/FeatureContext.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/FeatureContext.php b/build/integration/features/bootstrap/FeatureContext.php index 7176a19064a..56b81d631a7 100644 --- a/build/integration/features/bootstrap/FeatureContext.php +++ b/build/integration/features/bootstrap/FeatureContext.php @@ -800,7 +800,7 @@ class FeatureContext implements Context, SnippetAcceptingContext { elseif($contentExpected == "AN_URL"){ return $this->isExpectedUrl((string)$element->$field, "index.php/s/"); } - elseif ($element->$field == $contentExpected){ + elseif ((string)$element->$field == $contentExpected){ return True; } } @@ -959,6 +959,17 @@ class FeatureContext implements Context, SnippetAcceptingContext { } /** + * @Then /^last share_id is included in the answer$/ + */ + public function findingLastShareID(){ + print_r($this->response->xml()); + $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"); + } + } + + /** * @Then /^Share fields of last share match with$/ * @param \Behat\Gherkin\Node\TableNode|null $formData */ |