Commit fe8df31f authored by Joas Schilling's avatar Joas Schilling
Browse files

Sort the array to be sure

parent ac5bb97d
......@@ -59,7 +59,14 @@ class GroupsTest extends TestCase {
$this->assertInstanceOf('OC_OCS_Result', $result);
$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'];
$this->assertEquals($users, $resultData);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment