borinquenkid opened a new pull request, #16206: URL: https://github.com/apache/grails-core/pull/16206
## Summary Stacked on #16201. `MockDataFetchingEnvironment#getMergedField()` always rebuilt a `MergedField` from `fields`, ignoring the settable `mergedField` property entirely - it was flagged as unused. Now falls back to building from `fields` only when `mergedField` isn't explicitly set, so test authors can stub a `MergedField` directly. Adds `MockDataFetchingEnvironmentSpec`, the first dedicated spec for this public testing utility. ## Test plan - [x] `./gradlew :grails-data-graphql-core:test :grails-data-graphql:test :grails-data-graphql-core:codeStyle :grails-data-graphql:codeStyle` passes 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
