stable

Clone or download

Read-only

chore: Unit-test PullRequestMinimalRepresentation build

No functional change. Notes: This is a first step to be able to move the building to a dedicated class in REST namespace and eventually making the representation immutable. It will also help to safely add the creator User representation. part of story #33006 Create filters on my PR Change-Id: I8f45f71350cf648305ac73d9a19417a5be3e2229

Modified Files

Name
A plugins/git/tests/unit/Tests/Builders/GitRepositoryTestBuilder.php +65 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestMinimalRepresentation.php +13 −59 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestRepresentation.php +0 −5 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/Comment/PATCHCommentHandlerTest.php +2 −4 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/Comment/POSTCommentHandlerTest.php +2 −4 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/InlineComment/PATCHHandlerTest.php +2 −3 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/InlineComment/POSTHandlerTest.php +3 −5 Go to diff View file
A plugins/pullrequest/tests/unit/REST/v1/PullRequestMinimalRepresentationTest.php +149 −0 Go to diff View file
M plugins/pullrequest/tests/unit/Tests/Builders/PullRequestTestBuilder.php +38 −20 Go to diff View file