diff options
author | Sergio Bertolin <sbertolin@solidgear.es> | 2015-10-07 11:09:01 +0000 |
---|---|---|
committer | Sergio Bertolin <sbertolin@solidgear.es> | 2015-10-07 11:09:01 +0000 |
commit | 8f91426e0af32aa4007d9f3b4749a78261a44279 (patch) | |
tree | 1860b041c4f5b64e979fddb28d7a7fd9be56357f /build/integration/features/bootstrap/FeatureContext.php | |
parent | 957d60cd0a30fae7fcdca63d73da5965545efed2 (diff) | |
download | nextcloud-server-8f91426e0af32aa4007d9f3b4749a78261a44279.tar.gz nextcloud-server-8f91426e0af32aa4007d9f3b4749a78261a44279.zip |
changing indentation, vertical elements and previous existance of users and groups
Diffstat (limited to 'build/integration/features/bootstrap/FeatureContext.php')
-rw-r--r-- | build/integration/features/bootstrap/FeatureContext.php | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/build/integration/features/bootstrap/FeatureContext.php b/build/integration/features/bootstrap/FeatureContext.php index 70424b1d24c..f440aece603 100644 --- a/build/integration/features/bootstrap/FeatureContext.php +++ b/build/integration/features/bootstrap/FeatureContext.php @@ -58,22 +58,22 @@ class FeatureContext extends BehatContext { } /** - * Parses the xml answer to get the array of users returned. - */ - public function getArrayOfUsersResponded($resp) { - $listCheckedElements = $resp->xml()->data[0]->users[0]->element; - $extractedElementsArray = json_decode( json_encode($listCheckedElements) , 1); - return $extractedElementsArray; - } - - /** - * Parses the xml answer to get the array of groups returned. - */ - public function getArrayOfGroupsResponded($resp) { - $listCheckedElements = $resp->xml()->data[0]->groups[0]->element; - $extractedElementsArray = json_decode( json_encode($listCheckedElements) , 1); - return $extractedElementsArray; - } + * Parses the xml answer to get the array of users returned. + */ + public function getArrayOfUsersResponded($resp) { + $listCheckedElements = $resp->xml()->data[0]->users[0]->element; + $extractedElementsArray = json_decode( json_encode($listCheckedElements) , 1); + return $extractedElementsArray; + } + + /** + * Parses the xml answer to get the array of groups returned. + */ + public function getArrayOfGroupsResponded($resp) { + $listCheckedElements = $resp->xml()->data[0]->groups[0]->element; + $extractedElementsArray = json_decode( json_encode($listCheckedElements) , 1); + return $extractedElementsArray; + } /** * @Then /^users returned are$/ @@ -82,8 +82,8 @@ class FeatureContext extends BehatContext { public function theUsersShouldBe($usersList) { if ($usersList instanceof \Behat\Gherkin\Node\TableNode) { $users = $usersList->getRows()[0]; - $respondedArray = $this->getArrayOfUsersResponded($this->response); - PHPUnit_Framework_Assert::assertEquals(asort($users), asort($respondedArray)); + $respondedArray = $this->getArrayOfUsersResponded($this->response); + PHPUnit_Framework_Assert::assertEquals(asort($users), asort($respondedArray)); } } @@ -95,8 +95,8 @@ class FeatureContext extends BehatContext { public function theGroupsShouldBe($groupsList) { if ($groupsList instanceof \Behat\Gherkin\Node\TableNode) { $groups = $groupsList->getRows()[0]; - $respondedArray = $this->getArrayOfGroupsResponded($this->response); - PHPUnit_Framework_Assert::assertEquals(asort($groups), asort($respondedArray)); + $respondedArray = $this->getArrayOfGroupsResponded($this->response); + PHPUnit_Framework_Assert::assertEquals(asort($groups), asort($respondedArray)); } } |