public function testCommentGetAndSet() { $obj = new GD_Model_Deployment(); $obj->setComment("Test"); $this->assertSame("Test", $obj->getComment()); }
/** * 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; }