/** * @expectedException BusinessLogicException */ public function testElimnarServicioConOrdenes() { //no se debe poder eliminar un id_servicio ya que hay una orden activa en ese servicio ServiciosController::Eliminar(_pos_phpunit_servicios_id_servicio); }
protected function GenerateResponse() { try { $this->response = ServiciosController::Eliminar(isset($_GET['id_servicio']) ? $_GET['id_servicio'] : null); } catch (Exception $e) { //Logger::error($e); throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage())); } }