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())); } }
public function testDetalles() { $resultado = ProductosController::DetallesUnidadUdm(1); $this->assertNotNull($resultado['unidad_medida']); }