stable

Clone or download

Read-only

[tech] Almost all GitLab unit tests do not use Mockery anymore

This is part of request #21775 Favor PHPUnit mock system over Mockery - part 2 5 test classes still use Mockery because there is some extra work to do on them. Change-Id: I1ab1492b434e62843c8b863ed077ffb0360df45e

Modified Files

Name
M plugins/gitlab/tests/unit/API/ClientWrapperTest.php +57 −53 Go to diff View file
M plugins/gitlab/tests/unit/API/GitlabProjectBuilderTest.php +41 −36 Go to diff View file
M plugins/gitlab/tests/unit/Artifact/ArtifactRetrieverTest.php +12 −12 Go to diff View file
M plugins/gitlab/tests/unit/EventsHandlers/ReferenceAdministrationWarningsCollectorEventHandlerTest.php +1 −4 Go to diff View file
M plugins/gitlab/tests/unit/REST/v1/BotApiTokenUpdaterTest.php +95 −112 Go to diff View file
M plugins/gitlab/tests/unit/REST/v1/WebhookSecretGeneratorTest.php +76 −98 Go to diff View file
M plugins/gitlab/tests/unit/Reference/Branch/GitlabBranchCrossReferenceEnhancerTest.php +2 −0 Go to diff View file
M plugins/gitlab/tests/unit/Reference/Branch/GitlabBranchFactoryTest.php +4 −1 Go to diff View file
M plugins/gitlab/tests/unit/Reference/Commit/GitlabCommitCrossReferenceEnhancerTest.php +38 −39 Go to diff View file
M plugins/gitlab/tests/unit/Reference/Commit/GitlabCommitFactoryTest.php +12 −15 Go to diff View file
M plugins/gitlab/tests/unit/Reference/GitlabCrossReferenceOrganizerTest.php +2 −2 Go to diff View file
M plugins/gitlab/tests/unit/Reference/GitlabReferenceBuilderTest.php +56 −46 Go to diff View file
M plugins/gitlab/tests/unit/Reference/TuleapReferenceRetrieverTest.php +35 −27 Go to diff View file
M plugins/gitlab/tests/unit/Repository/GitlabRepositoryCreatorTest.php +54 −57 Go to diff View file
M plugins/gitlab/tests/unit/Repository/GitlabRepositoryDeletorTest.php +63 −61 Go to diff View file
M plugins/gitlab/tests/unit/Repository/GitlabRepositoryIntegrationFactoryTest.php +9 −11 Go to diff View file
M plugins/gitlab/tests/unit/Repository/GitlabRepositoryIntegrationUpdatorTest.php +3 −3 Go to diff View file
M plugins/gitlab/tests/unit/Repository/GitlabRepositoryTest.php +0 −4 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Token/IntegrationApiTokenTest.php +0 −3 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/Bot/BotCommentReferencePresenterBuilderTest.php +5 −10 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/Bot/CommentSenderTest.php +24 −35 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/Bot/CredentialsRetrieverTest.php +14 −19 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/Bot/InvalidCredentialsNotifierTest.php +43 −40 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/CrossReferenceFromMergeRequestCreatorTest.php +107 −139 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/PostMergeRequestBotCommenterTest.php +78 −76 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookAuthorDataRetrieverTest.php +15 −21 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookDataBuilderTest.php +11 −22 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/PreviouslySavedReferencesRetrieverTest.php +28 −36 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/TuleapReferencesFromMergeRequestDataExtractorTest.php +4 −8 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/Branch/PostPushWebhookActionBranchHandlerTest.php +5 −5 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushCommitArtifactUpdaterTest.php +190 −131 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushCommitBotCommenterTest.php +81 −84 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushTuleapArtifactCommentBuilderTest.php +16 −8 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushWebhookCloseArtifactHandlerTest.php +161 −138 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/Secret/SecretCheckerTest.php +13 −24 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/TagPush/TagPushWebhookActionProcessorTest.php +20 −22 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/TagPush/TagPushWebhookCreateActionTest.php +61 −63 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/TagPush/TagPushWebhookDeleteActionTest.php +13 −17 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookActionsTest.php +46 −43 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookDataExtractorTest.php +13 −18 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookDeletorTest.php +92 −85 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookTuleapReferenceTest.php +0 −4 Go to diff View file
M tests/psalm/psalm.xml +6 −0 Go to diff View file