stable

Clone or download

Read-only

chore: Drop Mockery usage in pullrequest plugin

This is part of request #21775 Favor PHPUnit mock system over Mockery - part 2 Some files are ingored by psalm because of some psalm templating that I don't know how to deal with. Change-Id: I0c1eeff7ef93fef2cea18ca92b1515bb0f496cc4

Modified Files

Name
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestInlineCommentPOSTRepresentation.php +30 −0 Go to diff View file
M plugins/pullrequest/tests/integration/PullRequestUpdaterTest.php +61 −67 Go to diff View file
M plugins/pullrequest/tests/unit/Authorization/PullRequestPermissionCheckerTest.php +40 −40 Go to diff View file
M plugins/pullrequest/tests/unit/BranchUpdate/PulRequestUpdatedEventTest.php +11 −14 Go to diff View file
M plugins/pullrequest/tests/unit/BranchUpdate/PullRequestUpdateCommitDiffTest.php +25 −29 Go to diff View file
M plugins/pullrequest/tests/unit/BranchUpdate/PullRequestUpdatedNotificationTest.php +41 −39 Go to diff View file
M plugins/pullrequest/tests/unit/BranchUpdate/PullRequestUpdatedNotificationToProcessBuilderTest.php +88 −93 Go to diff View file
M plugins/pullrequest/tests/unit/BranchUpdate/RepositoryURLToCommitBuilderTest.php +5 −8 Go to diff View file
M plugins/pullrequest/tests/unit/Comment/Notification/PullRequestNewCommentNotificationTest.php +12 −14 Go to diff View file
M plugins/pullrequest/tests/unit/Comment/Notification/PullRequestNewCommentNotificationToProcessBuilderTest.php +33 −41 Go to diff View file
M plugins/pullrequest/tests/unit/FileUniDiffBuilderTest.php +37 −41 Go to diff View file
M plugins/pullrequest/tests/unit/GitExecTest.php +3 −4 Go to diff View file
M plugins/pullrequest/tests/unit/GitReference/GitPullRequestReferenceBulkConverterTest.php +60 −64 Go to diff View file
M plugins/pullrequest/tests/unit/GitReference/GitPullRequestReferenceCreatorTest.php +61 −66 Go to diff View file
M plugins/pullrequest/tests/unit/GitReference/GitPullRequestReferenceNamespaceAvailabilityCheckerTest.php +9 −13 Go to diff View file
M plugins/pullrequest/tests/unit/GitReference/GitPullRequestReferenceRemoverTest.php +23 −19 Go to diff View file
M plugins/pullrequest/tests/unit/GitReference/GitPullRequestReferenceRetrieverTest.php +12 −16 Go to diff View file
M plugins/pullrequest/tests/unit/GitReference/GitPullRequestReferenceTest.php +4 −7 Go to diff View file
M plugins/pullrequest/tests/unit/GitReference/GitPullRequestReferenceUpdaterTest.php +89 −94 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/InlineCommentCreatorTest.php +18 −19 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/InlineCommentRetrieverTest.php +8 −17 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/Notification/InlineCommentCodeContextExtractorTest.php +21 −28 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/Notification/PullRequestNewInlineCommentNotificationTest.php +15 −17 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/Notification/PullRequestNewInlineCommentNotificationToProcessBuilderTest.php +43 −50 Go to diff View file
M plugins/pullrequest/tests/unit/Label/LabeledItemCollectorTest.php +90 −99 Go to diff View file
M plugins/pullrequest/tests/unit/MergeSetting/MergeSettingRetrieverTest.php +14 −24 Go to diff View file
M plugins/pullrequest/tests/unit/Notification/EventSubjectToNotificationAsynchronousRedisDispatcherTest.php +14 −20 Go to diff View file
M plugins/pullrequest/tests/unit/Notification/EventSubjectToNotificationListenerProviderTest.php +9 −12 Go to diff View file
M plugins/pullrequest/tests/unit/Notification/EventSubjectToNotificationListenerTest.php +15 −7 Go to diff View file
M plugins/pullrequest/tests/unit/Notification/EventSubjectToNotificationSynchronousDispatcherTest.php +16 −19 Go to diff View file
M plugins/pullrequest/tests/unit/Notification/NotificationTemplatedContentTest.php +5 −9 Go to diff View file
M plugins/pullrequest/tests/unit/Notification/OwnerRetrieverTest.php +30 −35 Go to diff View file
M plugins/pullrequest/tests/unit/Notification/Strategy/PullRequestNotificationSendMailTest.php +76 −65 Go to diff View file
M plugins/pullrequest/tests/unit/PullRequest/Reference/CrossReferencePullRequestOrganizerTest.php +139 −183 Go to diff View file
M plugins/pullrequest/tests/unit/PullRequestCloserTest.php +46 −46 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/Comment/ParentIdValidatorForCommentTest.php +7 −6 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/Comment/ParentIdValidatorForInlineCommentTest.php +3 −3 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/Comment/ThreadCommentColorAssignerTest.php +1 −1 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/Comment/ThreadCommentColorRetrieverTest.php +1 −1 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/StatusPatcherTest.php +203 −153 Go to diff View file
M plugins/pullrequest/tests/unit/Reference/HTMLURLBuilderTest.php +18 −30 Go to diff View file
M plugins/pullrequest/tests/unit/Reference/ReferenceFactoryTest.php +35 −45 Go to diff View file
M plugins/pullrequest/tests/unit/Reviewer/Autocompleter/PotentialReviewerRetrieverTest.php +36 −37 Go to diff View file
M plugins/pullrequest/tests/unit/Reviewer/Autocompleter/ReviewerAutocompleterControllerTest.php +43 −49 Go to diff View file
M plugins/pullrequest/tests/unit/Reviewer/Change/ReviewerChangeRetrieverTest.php +44 −45 Go to diff View file
M plugins/pullrequest/tests/unit/Reviewer/Notification/ReviewerAddedNotificationTest.php +21 −23 Go to diff View file
M plugins/pullrequest/tests/unit/Reviewer/Notification/ReviewerChangeNotificationToProcessBuilderTest.php +25 −31 Go to diff View file
M plugins/pullrequest/tests/unit/Reviewer/ReviewerRetrieverTest.php +47 −51 Go to diff View file
M plugins/pullrequest/tests/unit/Reviewer/ReviewerUpdaterTest.php +58 −69 Go to diff View file
M plugins/pullrequest/tests/unit/StateStatus/PullRequestAbandonedEventTest.php +7 −12 Go to diff View file
M plugins/pullrequest/tests/unit/StateStatus/PullRequestAbandonedNotificationTest.php +12 −14 Go to diff View file
M plugins/pullrequest/tests/unit/StateStatus/PullRequestAbandonedNotificationToProcessBuilderTest.php +34 −41 Go to diff View file
M plugins/pullrequest/tests/unit/StateStatus/PullRequestMergedEventTest.php +9 −14 Go to diff View file
M plugins/pullrequest/tests/unit/StateStatus/PullRequestMergedNotificationTest.php +13 −15 Go to diff View file
M plugins/pullrequest/tests/unit/StateStatus/PullRequestMergedNotificationToProcessBuilderTest.php +35 −42 Go to diff View file
M tests/psalm/psalm.xml +3 −1 Go to diff View file