/**
  * 
  * @return array An array of user names
  */
 public function getMembersName()
 {
     return $this->ugroup->getUsers()->getNames();
 }
Beispiel #2
0
 public function itReturnsTheMembersOfDynamicGroups()
 {
     $id = 1;
     $group_id = 555;
     $row = array('ugroup_id' => $id, 'group_id' => $group_id);
     $ugroup = new ProjectUGroup($row);
     $ugroup->setUGroupUserDao(stub('UGroupUserDao')->searchUserByDynamicUGroupId($id, $group_id)->returnsDar($this->garfield_incomplete_row, $this->goofy_incomplete_row));
     $users = array($this->garfield, $this->goofy);
     $this->assertEqual($ugroup->getUsers()->reify(), $users);
 }