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())); } }
/** * @expectedException InvalidDatabaseOperationException */ public function testDetallesNoExiste() { $resultado = ProductosController::DetallesCategoriaUdm(90); }