/**
  * @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);
 }
Esempio n. 2
0
 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()));
     }
 }