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

@ -53,7 +53,7 @@ class FeatureContext extends BehatContext {
* Parses the xml answer to get ocs response which doesn't match with
* http one in v1 of the api.
*/
public function getOCSResponse($response){
public function getOCSResponse($response) {
return $response->xml()->meta[0]->statuscode;
}
@ -62,7 +62,7 @@ class FeatureContext extends BehatContext {
*/
public function getArrayOfUsersResponded($resp) {
$listCheckedElements = $resp->xml()->data[0]->users[0]->element;
$extractedElementsArray = json_decode( json_encode($listCheckedElements) , 1);
$extractedElementsArray = json_decode(json_encode($listCheckedElements), 1);
return $extractedElementsArray;
}
@ -71,7 +71,7 @@ class FeatureContext extends BehatContext {
*/
public function getArrayOfGroupsResponded($resp) {
$listCheckedElements = $resp->xml()->data[0]->groups[0]->element;
$extractedElementsArray = json_decode( json_encode($listCheckedElements) , 1);
$extractedElementsArray = json_decode(json_encode($listCheckedElements), 1);
return $extractedElementsArray;
}
@ -161,7 +161,7 @@ class FeatureContext extends BehatContext {
* @When /^creating the user "([^"]*)r"$/
*/
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();
$options = [];
if ($this->currentUser === 'admin') {
@ -181,7 +181,7 @@ class FeatureContext extends BehatContext {
* @When /^creating the group "([^"]*)r"$/
*/
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();
$options = [];
if ($this->currentUser === 'admin') {