Exemplo n.º 1
0
 public function testAccountGroupProperties()
 {
     $groupID = 1;
     $groupName = 'gp1';
     $groupDescription = 'the first group';
     $dateAdded = new DateTime();
     $dateRemoved = new DateTime();
     $dateRemoved->modify('+ 1 day');
     $group = new AccountGroup();
     $group->setGroupID($groupID);
     $group->setGroupName($groupName);
     $group->setGroupDescription($groupDescription);
     $group->setDateAdded($dateAdded);
     $group->setDateRemoved($dateRemoved);
     $this->assertEquals($groupID, $group->getGroupID());
     $this->assertEquals($groupName, $group->getGroupName());
     $this->assertEquals($groupDescription, $group->getGroupDescription());
     $this->assertEquals($dateAdded, $group->getDateAdded());
     $this->assertEquals($dateRemoved, $group->getDateRemoved());
 }