diff options
author | Sergio Bertolin <sbertolin@solidgear.es> | 2015-10-21 09:32:08 +0000 |
---|---|---|
committer | Sergio Bertolin <sbertolin@solidgear.es> | 2015-10-21 10:19:20 +0000 |
commit | 5703483e996c15f3bff46fde34187a063f3dba2c (patch) | |
tree | 755ff6f677462f57f79a782e853e399092b0878c | |
parent | 488728a0fa0984d60ae0168c2d06bf6afe5b4105 (diff) | |
download | nextcloud-server-5703483e996c15f3bff46fde34187a063f3dba2c.tar.gz nextcloud-server-5703483e996c15f3bff46fde34187a063f3dba2c.zip |
using canonize in assertEquals for arrays
-rw-r--r-- | build/integration/features/bootstrap/FeatureContext.php | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/build/integration/features/bootstrap/FeatureContext.php b/build/integration/features/bootstrap/FeatureContext.php index 174c271447a..e05015301f3 100644 --- a/build/integration/features/bootstrap/FeatureContext.php +++ b/build/integration/features/bootstrap/FeatureContext.php @@ -102,9 +102,7 @@ class FeatureContext extends BehatContext { $users = $usersList->getRows(); $usersSimplified = $this->simplifyArray($users); $respondedArray = $this->getArrayOfUsersResponded($this->response); - sort($usersSimplified); - sort($respondedArray); - PHPUnit_Framework_Assert::assertEquals($usersSimplified, $respondedArray); + PHPUnit_Framework_Assert::assertEquals($usersSimplified, $respondedArray, "", 0.0, 10, true); } } @@ -118,9 +116,7 @@ class FeatureContext extends BehatContext { $groups = $groupsList->getRows(); $groupsSimplified = $this->simplifyArray($groups); $respondedArray = $this->getArrayOfGroupsResponded($this->response); - sort($groups); - sort($respondedArray); - PHPUnit_Framework_Assert::assertEquals($groupsSimplified, $respondedArray); + PHPUnit_Framework_Assert::assertEquals($groupsSimplified, $respondedArray, "", 0.0, 10, true); } } @@ -134,9 +130,7 @@ class FeatureContext extends BehatContext { $groups = $groupsList->getRows(); $groupsSimplified = $this->simplifyArray($groups); $respondedArray = $this->getArrayOfSubadminsResponded($this->response); - sort($groups); - sort($respondedArray); - PHPUnit_Framework_Assert::assertEquals($groupsSimplified, $respondedArray); + PHPUnit_Framework_Assert::assertEquals($groupsSimplified, $respondedArray, "", 0.0, 10, true); } } @@ -206,9 +200,7 @@ class FeatureContext extends BehatContext { $this->response = $client->get($fullUrl, $options); $groups = array($group); $respondedArray = $this->getArrayOfGroupsResponded($this->response); - sort($groups); - sort($respondedArray); - PHPUnit_Framework_Assert::assertEquals($groups, $respondedArray); + PHPUnit_Framework_Assert::assertEquals($groups, $respondedArray, "", 0.0, 10, true); PHPUnit_Framework_Assert::assertEquals(200, $this->response->getStatusCode()); } @@ -226,9 +218,7 @@ class FeatureContext extends BehatContext { $this->response = $client->get($fullUrl, $options); $groups = array($group); $respondedArray = $this->getArrayOfGroupsResponded($this->response); - sort($groups); - sort($respondedArray); - PHPUnit_Framework_Assert::assertNotEquals($groups, $respondedArray); + PHPUnit_Framework_Assert::assertNotEquals($groups, $respondedArray, "", 0.0, 10, true); PHPUnit_Framework_Assert::assertEquals(200, $this->response->getStatusCode()); } |