diff options
author | Sergio Bertolin <sbertolin@solidgear.es> | 2015-10-07 09:24:12 +0000 |
---|---|---|
committer | Sergio Bertolin <sbertolin@solidgear.es> | 2015-10-07 09:24:12 +0000 |
commit | 957d60cd0a30fae7fcdca63d73da5965545efed2 (patch) | |
tree | cc901e2653e5e91c41d161cf2c47d52be11b9b47 /build/integration/features/bootstrap/FeatureContext.php | |
parent | 1b0e128b4407fefe9ff7be7366bacbac94d101c9 (diff) | |
download | nextcloud-server-957d60cd0a30fae7fcdca63d73da5965545efed2.tar.gz nextcloud-server-957d60cd0a30fae7fcdca63d73da5965545efed2.zip |
ordering arrays before comparing
Diffstat (limited to 'build/integration/features/bootstrap/FeatureContext.php')
-rw-r--r-- | build/integration/features/bootstrap/FeatureContext.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/integration/features/bootstrap/FeatureContext.php b/build/integration/features/bootstrap/FeatureContext.php index a09e74de57c..70424b1d24c 100644 --- a/build/integration/features/bootstrap/FeatureContext.php +++ b/build/integration/features/bootstrap/FeatureContext.php @@ -83,7 +83,7 @@ class FeatureContext extends BehatContext { if ($usersList instanceof \Behat\Gherkin\Node\TableNode) { $users = $usersList->getRows()[0]; $respondedArray = $this->getArrayOfUsersResponded($this->response); - PHPUnit_Framework_Assert::assertEquals($users, $respondedArray); + PHPUnit_Framework_Assert::assertEquals(asort($users), asort($respondedArray)); } } @@ -96,7 +96,7 @@ class FeatureContext extends BehatContext { if ($groupsList instanceof \Behat\Gherkin\Node\TableNode) { $groups = $groupsList->getRows()[0]; $respondedArray = $this->getArrayOfGroupsResponded($this->response); - PHPUnit_Framework_Assert::assertEquals($groups, $respondedArray); + PHPUnit_Framework_Assert::assertEquals(asort($groups), asort($respondedArray)); } } |