예제 #1
0
 protected function GenerateResponse()
 {
     try {
         $this->response = ProductosController::DetallesUnidadUdm(isset($_GET['id_unidad_medida']) ? $_GET['id_unidad_medida'] : null);
     } catch (Exception $e) {
         //Logger::error($e);
         throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage()));
     }
 }
예제 #2
0
 public function testDetalles()
 {
     $resultado = ProductosController::DetallesUnidadUdm(1);
     $this->assertNotNull($resultado['unidad_medida']);
 }