public function testFindGroupMembers()
 {
     $members = $this->repository->findGroupMembers(1);
     $this->assertCount(2, $members);
     $this->assertInstanceOf('Wonderland\\Application\\Model\\Member', $members[0]);
     $this->assertEquals('2', $members[0]->getId());
     $this->assertEquals('Alexander', $members[0]->getIdentity());
     $this->assertInstanceOf('DateTime', $members[0]->getLastConnectedAt());
 }
예제 #2
0
 /**
  * @param int $groupId
  *
  * @return array
  */
 public function getGroupMembers($groupId)
 {
     return $this->repository->findGroupMembers($groupId);
 }