Fix whitespace issues in integration tests

This commit is contained in:
Morris Jobke 2015-10-08 16:21:31 +02:00
parent adeab41e2a
commit d78f6852c7
1 changed files with 15 additions and 15 deletions

View File

@ -43,35 +43,35 @@ class FeatureContext extends BehatContext {
} }
/** /**
* @When /^sending "([^"]*)" to "([^"]*)"$/ * @When /^sending "([^"]*)" to "([^"]*)"$/
*/ */
public function sendingTo($verb, $url) { public function sendingTo($verb, $url) {
$this->sendingToWith($verb, $url, null); $this->sendingToWith($verb, $url, null);
} }
/** /**
* Parses the xml answer to get ocs response which doesn't match with * Parses the xml answer to get ocs response which doesn't match with
* http one in v1 of the api. * http one in v1 of the api.
*/ */
public function getOCSResponse($response){ public function getOCSResponse($response) {
return $response->xml()->meta[0]->statuscode; return $response->xml()->meta[0]->statuscode;
} }
/** /**
* Parses the xml answer to get the array of users returned. * Parses the xml answer to get the array of users returned.
*/ */
public function getArrayOfUsersResponded($resp) { public function getArrayOfUsersResponded($resp) {
$listCheckedElements = $resp->xml()->data[0]->users[0]->element; $listCheckedElements = $resp->xml()->data[0]->users[0]->element;
$extractedElementsArray = json_decode( json_encode($listCheckedElements) , 1); $extractedElementsArray = json_decode(json_encode($listCheckedElements), 1);
return $extractedElementsArray; return $extractedElementsArray;
} }
/** /**
* Parses the xml answer to get the array of groups returned. * Parses the xml answer to get the array of groups returned.
*/ */
public function getArrayOfGroupsResponded($resp) { public function getArrayOfGroupsResponded($resp) {
$listCheckedElements = $resp->xml()->data[0]->groups[0]->element; $listCheckedElements = $resp->xml()->data[0]->groups[0]->element;
$extractedElementsArray = json_decode( json_encode($listCheckedElements) , 1); $extractedElementsArray = json_decode(json_encode($listCheckedElements), 1);
return $extractedElementsArray; return $extractedElementsArray;
} }
@ -100,7 +100,7 @@ class FeatureContext extends BehatContext {
} }
} }
/** /**
* @Then /^the OCS status code should be "([^"]*)"$/ * @Then /^the OCS status code should be "([^"]*)"$/
*/ */
@ -161,7 +161,7 @@ class FeatureContext extends BehatContext {
* @When /^creating the user "([^"]*)r"$/ * @When /^creating the user "([^"]*)r"$/
*/ */
public function creatingTheUser($user) { public function creatingTheUser($user) {
$fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/cloud/users/$user" ; $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/cloud/users/$user";
$client = new Client(); $client = new Client();
$options = []; $options = [];
if ($this->currentUser === 'admin') { if ($this->currentUser === 'admin') {
@ -181,7 +181,7 @@ class FeatureContext extends BehatContext {
* @When /^creating the group "([^"]*)r"$/ * @When /^creating the group "([^"]*)r"$/
*/ */
public function creatingTheGroup($group) { public function creatingTheGroup($group) {
$fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/cloud/groups/addgroup" ; $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/cloud/groups/addgroup";
$client = new Client(); $client = new Client();
$options = []; $options = [];
if ($this->currentUser === 'admin') { if ($this->currentUser === 'admin') {