Skip to content

refactor(updatenotification): remove unused notifier mock branch - #64160

Open
joshtrichards wants to merge 2 commits into
masterfrom
jtr/refactor-notTest
Open

refactor(updatenotification): remove unused notifier mock branch#64160
joshtrichards wants to merge 2 commits into
masterfrom
jtr/refactor-notTest

Conversation

@joshtrichards

@joshtrichards joshtrichards commented Sep 10, 2026

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

  1. The test helper is only called without method overrides, so remove the unused partial-mock path and simplify its signature and return type.

  2. Replace manual try/catch assertions with PHPUnit's expectException() API and split successful and exceptional cases into focused tests.

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

The test helper is only called without method overrides, so remove the unused partial-mock path and simplify its signature and return type.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Replace manual try/catch assertions with PHPUnit's expectException() API and split successful and exceptional cases into focused tests.

Assisted-by: Copilot:gpt-5.6-luna

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added this to the Nextcloud 36 milestone Sep 10, 2026
@joshtrichards joshtrichards added 3. to review Waiting for reviews ⚠️ risk: low Unlikely to cause meaningful regressions; limited runtime or compatibility impact. labels Sep 10, 2026
@joshtrichards
joshtrichards marked this pull request as ready for review September 10, 2026 01:04
@joshtrichards
joshtrichards requested a review from a team as a code owner September 10, 2026 01:04
@joshtrichards
joshtrichards requested review from come-nc, leftybournes, provokateurin and salmart-dev and removed request for a team September 10, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted feature: activity and notification feature: install and update ⚠️ risk: low Unlikely to cause meaningful regressions; limited runtime or compatibility impact. tests Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants