Skip to content

feat: Add rector rule to automatically migrate to the new createInstanceWithMocks - #106

Draft
come-nc wants to merge 4 commits into
mainfrom
feat/add-automock-rector
Draft

come-nc wants to merge 4 commits into
mainfrom
feat/add-automock-rector

Conversation

@come-nc

@come-nc come-nc commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Migrate test classes to the new method createInstanceWithMocks.

Motivation and context

See nextcloud/server#64736

How has this been tested?

Unit test included, not tested on live code yet.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

PR checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.

…nceWithMocks

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc self-assigned this Sep 25, 2026
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc
come-nc force-pushed the feat/add-automock-rector branch from 02e5239 to 86104b7 Compare September 25, 2026 13:08
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
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.

1 participant