Beispiel #1
0
 public function testUsersIdGetAndSet()
 {
     $obj = new GD_Model_Deployment();
     $obj->setUsersId(5);
     $this->assertSame(5, $obj->getUsersId());
 }
 /**
  * Should return an array of mapped fields to use in the MAL_Model_MapperAbstract::Save function
  * @param GD_Model_Deployment $obj
  */
 protected function getSaveData($obj)
 {
     $data = array('users_id' => $obj->getUsersId(), 'projects_id' => $obj->getProjectsId(), 'when' => $obj->getWhen(), 'servers_id' => $obj->getServersId(), 'from_revision' => $obj->getFromRevision(), 'to_revision' => $obj->getToRevision(), 'comment' => $obj->getComment(), 'deployment_statuses_id' => $obj->getDeploymentStatusesId());
     return $data;
 }