Skip to content

PHPLARA-267 Test loadSum, loadAvg, loadMin and loadMax on relations - #3566

Open
GromNaN wants to merge 1 commit into
mongodb:5.xfrom
GromNaN:PHPLARA-267-test-load-aggregates
Open

PHPLARA-267 Test loadSum, loadAvg, loadMin and loadMax on relations#3566
GromNaN wants to merge 1 commit into
mongodb:5.xfrom
GromNaN:PHPLARA-267-test-load-aggregates

Conversation

@GromNaN

@GromNaN GromNaN commented Aug 18, 2026

Copy link
Copy Markdown
Member

#3560 added relation aggregate support, including the loadSum, loadAvg, loadMin and loadMax instance methods that route through loadAggregate. Only loadCount and loadExists had a dedicated test.

This adds a test that exercises the four remaining load methods on a HasMany relation, so the documented behavior stays covered.

Jira: https://jira.mongodb.org/browse/PHPLARA-267

Copilot AI lite review requested due to automatic review settings August 18, 2026 15:48
@GromNaN
GromNaN requested a review from a team as a code owner August 18, 2026 15:48
@GromNaN
GromNaN requested a review from paulinevos August 18, 2026 15:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds missing test coverage for the loadSum, loadAvg, loadMin, and loadMax relation aggregate helpers (introduced alongside relation aggregate support) to ensure the documented behavior remains covered—matching the existing dedicated coverage already present for loadCount and loadExists.

Changes:

  • Adds a new test exercising loadSum, loadAvg, loadMin, and loadMax on a HasMany relation (items) and asserting the expected aggregate attributes are set on the model.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants