/**
  * @param int    $id
  * @param string $message
  * @return bool
  */
 public function reject($id, $message)
 {
     $data = new ReturnUnitRejectTransfer();
     $data->message = $message;
     $endpoint = new Reject($this->getTransport());
     $endpoint->setId($id);
     $endpoint->setTransfer($data);
     try {
         $result = $endpoint->performRequest();
     } catch (ResourceNotFoundException $e) {
         return false;
     }
     return $result['status'] == 204;
 }
Exemplo n.º 2
0
 /**
  * @expectedException \Hitmeister\Component\Api\Exceptions\RuntimeException
  * @expectedExceptionMessage Required params id is not set
  */
 public function testExceptionOnEmptyId()
 {
     $get = new Reject($this->transport);
     $get->getURI();
 }