예제 #1
0
 protected function GenerateResponse()
 {
     try {
         $this->response = ProductosController::DetallesCategoriaUdm(isset($_GET['id_categoria_unidad_medida']) ? $_GET['id_categoria_unidad_medida'] : null);
     } catch (Exception $e) {
         //Logger::error($e);
         throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage()));
     }
 }
예제 #2
0
 /**
  * @expectedException InvalidDatabaseOperationException
  */
 public function testDetallesNoExiste()
 {
     $resultado = ProductosController::DetallesCategoriaUdm(90);
 }