stable

Clone or download

Read-only

refactor: CommentCreator class to group DB queries together

No functional change expected when creating a new comment through the REST API. part of story #32316 Update comments Change-Id: Iaf184ec75fe86b86006c63628cca51f8d5c56cb1

Modified Files

Name
M plugins/pullrequest/include/PullRequest/Comment/Comment.php +2 −2 Go to diff View file
A plugins/pullrequest/include/PullRequest/Comment/CommentCreator.php +71 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Comment/CreateComment.php +35 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Comment/Dao.php +18 −4 Go to diff View file
M plugins/pullrequest/include/PullRequest/Comment/Factory.php +1 −34 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +21 −19 Go to diff View file
M plugins/pullrequest/tests/integration/Comment/CommentDAOTest.php +3 −3 Go to diff View file
A plugins/pullrequest/tests/unit/Comment/CommentCreatorTest.php +92 −0 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/InlineCommentCreatorTest.php +4 −2 Go to diff View file
A plugins/pullrequest/tests/unit/Tests/Stub/CreateCommentStub.php +46 −0 Go to diff View file