Skip to content
Snippets Groups Projects
Commit fe8df31f authored by Joas Schilling's avatar Joas Schilling
Browse files

Sort the array to be sure

parent ac5bb97d
Branches
No related tags found
No related merge requests found
......@@ -59,7 +59,14 @@ class GroupsTest extends TestCase {
$this->assertInstanceOf('OC_OCS_Result', $result);
$this->assertTrue($result->succeeded());
$this->assertEquals(array('users' => $users), $result->getData());
$this->assertEquals(1, sizeof($result->getData()), 'Asserting the result data array only has the "users" key');
$this->assertArrayHasKey('users', $result->getData());
$resultData = $result->getData();
$resultData = $resultData['users'];
sort($users);
sort($resultData);
$this->assertEquals($users, $resultData);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment