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()); }
/** * @param int $groupId * * @return array */ public function getGroupMembers($groupId) { return $this->repository->findGroupMembers($groupId); }