summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-08-26 17:46:31 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-08-26 17:46:31 +0200
commit1f5a55ddff8c5339b849d91c24722b3a3e367a2c (patch)
tree7cce6fbe4d837a4bc52471e2d60947698354b1ed /tests/lib
parent64c0e5d8075ef904f8b87611b1b91dc2c2839519 (diff)
downloadnextcloud-server-1f5a55ddff8c5339b849d91c24722b3a3e367a2c.tar.gz
nextcloud-server-1f5a55ddff8c5339b849d91c24722b3a3e367a2c.zip
consolidate validity check for users in group class
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/group/group.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/group/group.php b/tests/lib/group/group.php
index 75e975d9e65..f1fda3b9288 100644
--- a/tests/lib/group/group.php
+++ b/tests/lib/group/group.php
@@ -43,8 +43,8 @@ class Group extends \PHPUnit_Framework_TestCase {
$users = $group->getUsers();
$this->assertEquals(2, count($users));
- $user1 = $users[0];
- $user2 = $users[1];
+ $user1 = $users['user1'];
+ $user2 = $users['user2'];
$this->assertEquals('user1', $user1->getUID());
$this->assertEquals('user2', $user2->getUID());
}
@@ -68,9 +68,9 @@ class Group extends \PHPUnit_Framework_TestCase {
$users = $group->getUsers();
$this->assertEquals(3, count($users));
- $user1 = $users[0];
- $user2 = $users[1];
- $user3 = $users[2];
+ $user1 = $users['user1'];
+ $user2 = $users['user2'];
+ $user3 = $users['user3'];
$this->assertEquals('user1', $user1->getUID());
$this->assertEquals('user2', $user2->getUID());
$this->assertEquals('user3', $user3->getUID());