Example #1
0
 public function testGetGroupsWithOffset()
 {
     $access = $this->getAccessMock();
     $this->enableGroups($access);
     $access->expects($this->once())->method('ownCloudGroupNames')->will($this->returnValue(array('group1', 'group2')));
     $groupBackend = new GroupLDAP($access);
     $groups = $groupBackend->getGroups('', 2, 2);
     $this->assertSame(2, count($groups));
 }