summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2015-10-02 09:45:25 +0000
committerRoeland Jago Douma <rullzer@owncloud.com>2015-10-06 10:30:31 +0200
commit0c1a657282dd0bbe889485ed4a0d1124f671ef2f (patch)
treeab29eb03574ff51a9e30e39c12988424713433e0 /build
parentfd709b4b49f18113dce1523fdda88ef60f2c23a4 (diff)
downloadnextcloud-server-0c1a657282dd0bbe889485ed4a0d1124f671ef2f.tar.gz
nextcloud-server-0c1a657282dd0bbe889485ed4a0d1124f671ef2f.zip
restored assertions in existance of users and groups
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/FeatureContext.php26
1 files changed, 14 insertions, 12 deletions
diff --git a/build/integration/features/bootstrap/FeatureContext.php b/build/integration/features/bootstrap/FeatureContext.php
index 766f3a667f5..ec181206259 100644
--- a/build/integration/features/bootstrap/FeatureContext.php
+++ b/build/integration/features/bootstrap/FeatureContext.php
@@ -43,25 +43,25 @@ class FeatureContext extends BehatContext {
}
/**
- * @When /^sending "([^"]*)" to "([^"]*)"$/
- */
+ * @When /^sending "([^"]*)" to "([^"]*)"$/
+ */
public function sendingTo($verb, $url) {
$this->sendingToWith($verb, $url, null);
}
- /**
- * Parses the xml answer to get ocs response which doesn't match with
- * http one in v1 of the api.
- */
- public function getOCSResponse($response){
- return $response->xml()->meta[0]->statuscode;
- }
+ /**
+ * Parses the xml answer to get ocs response which doesn't match with
+ * http one in v1 of the api.
+ */
+ public function getOCSResponse($response){
+ return $response->xml()->meta[0]->statuscode;
+ }
- /**
+ /**
* @Then /^the OCS status code should be "([^"]*)"$/
*/
public function theOCSStatusCodeShouldBe($statusCode) {
@@ -69,7 +69,7 @@ class FeatureContext extends BehatContext {
}
- /**
+ /**
* @Then /^the HTTP status code should be "([^"]*)"$/
*/
public function theHTTPStatusCodeShouldBe($statusCode) {
@@ -116,6 +116,7 @@ class FeatureContext extends BehatContext {
$this->userExists($user);
} catch (\GuzzleHttp\Exception\ClientException $ex) {
$this->response = $ex->getResponse();
+ PHPUnit_Framework_Assert::assertEquals(404, $ex->getResponse()->getStatusCode());
}
}
@@ -141,7 +142,7 @@ class FeatureContext extends BehatContext {
}
- /**
+ /**
* @When /^creating the group "([^"]*)r"$/
*/
public function creatingTheGroup($group) {
@@ -183,6 +184,7 @@ class FeatureContext extends BehatContext {
$this->groupExists($group);
} catch (\GuzzleHttp\Exception\ClientException $ex) {
$this->response = $ex->getResponse();
+ PHPUnit_Framework_Assert::assertEquals(404, $ex->getResponse()->getStatusCode());
}
}