stable

Clone or download

Read-only

refactor: Stop relying on the the god PullRequest/Factory class in CrossReferencePullRequestOrganizer.php

Use the dedicated class instead a god factory to retrieve a pull request by its id. No functionnal change expected, cross reference should still work as before Part of request #35473 Stop relying on the god PullRequest/Factory class to retrieve pull request Change-Id: Iae5458a0a970b90561a992f1afab9feaf4518d4f

Modified Files

Name
M plugins/pullrequest/include/PullRequest/Reference/CrossReferencePullRequestOrganizer.php +44 −79 Go to diff View file
M plugins/pullrequest/include/pullrequestPlugin.php +1 −1 Go to diff View file
M plugins/pullrequest/tests/unit/Reference/CrossReferencePullRequestOrganizerTest.php +60 −101 Go to diff View file
M plugins/pullrequest/tests/unit/Tests/Builders/PullRequestTestBuilder.php +6 −0 Go to diff View file