Problem/Motivation

In #3555692: [November 2026] Replace @legacy-covers method level annotations with @see and prevent new ones from being added, some flaky results were reported when testing with PHPStan this test file.

Proposed resolution

Replace closures with test doubles, and clean baseline.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3635165

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mondrake created an issue. See original summary.

mondrake’s picture

Priority: Normal » Critical

mondrake’s picture

Issue summary: View changes
mondrake’s picture

Issue summary: View changes
Status: Active » Needs review
godotislate’s picture

Status: Needs review » Reviewed & tested by the community

I don't love that the mocked methods are not matching the document return types, but that's equivalent to what exists. Since this unblocks the PHPStan issues in #3555692: [November 2026] Replace @legacy-covers method level annotations with @see and prevent new ones from being added, lgtm.

godotislate’s picture

Title: Resolve InstallTasksTest PHPStan level 3 errros » Resolve InstallTasksTest PHPStan level 3 errors

  • catch committed a4cbef85 on main
    fix: #3635165 Resolve InstallTasksTest PHPStan level 3 errors
    
    By:...
catch’s picture

Version: main » 12.0.x-dev
Status: Reviewed & tested by the community » Fixed

Yep let's get this in and unblock that one, can return to this later.

Committed/pushed to main and 12.0.x, thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • catch committed ac9054a5 on 12.0.x
    fix: #3635165 Resolve InstallTasksTest PHPStan level 3 errors
    
    By:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.