stable

Clone or download

Read-only

Convert some Git tests to Mockery

This is part of request #14150 Get rid of SimpleTest This has been done with the tool that does automatic conversion. The classes not moved to mockery does not work with automatic conversion. Change-Id: Iac8ead23d19b19f62690abb6328005fe7825add4

Modified Files

Name
M plugins/git/tests/Git/Gitolite/Gitolite3LogParserTest.php +40 −39 Go to diff View file
M plugins/git/tests/Git/Gitolite/SSHKey/AuthorizedKeysFileCreatorTest.php +7 −5 Go to diff View file
M plugins/git/tests/Git/Gitolite/SSHKey/ManagementDetectorTest.php +29 −29 Go to diff View file
M plugins/git/tests/Git/Gitolite/SSHKey/Provider/GerritServerTest.php +3 −3 Go to diff View file
M plugins/git/tests/Git/Gitolite/SSHKey/Provider/UserTest.php +11 −11 Go to diff View file
M plugins/git/tests/Git/Gitolite/SSHKey/Provider/WholeInstanceKeysAggregatorTest.php +6 −4 Go to diff View file
M plugins/git/tests/Git/GitoliteHousekeeping/ChainOfResponsibility/CheckRunningEventsTest.php +14 −13 Go to diff View file
M plugins/git/tests/Git/GitoliteHousekeeping/ChainOfResponsibility/CleanUpGitoliteAdminRepoTest.php +11 −10 Go to diff View file
M plugins/git/tests/Git/GitoliteHousekeeping/ChainOfResponsibility/EnableGitGcTest.php +7 −6 Go to diff View file
M plugins/git/tests/Git/GitoliteHousekeeping/ChainOfResponsibility/ServiceRestarterTest.php +8 −7 Go to diff View file
M plugins/git/tests/Git/GitoliteHousekeeping/ChainOfResponsibility/ServiceStopperTest.php +9 −8 Go to diff View file
M plugins/git/tests/Git/GitoliteHousekeeping/GitoliteHousekeepingGitGcTest.php +19 −19 Go to diff View file
M plugins/git/tests/Git/GitoliteHousekeeping/GitoliteHousekeepingRunnerTest.php +6 −5 Go to diff View file
M plugins/git/tests/Git/Hook/ExtractCrossReferencesTest.php +26 −25 Go to diff View file
M plugins/git/tests/Git/Hook/LogAnalyzerTest.php +24 −28 Go to diff View file
M plugins/git/tests/Git/Hook/ParseLogTest.php +24 −22 Go to diff View file
M plugins/git/tests/Git/Hook/PostReceiveMailsRetrieverTest.php +10 −20 Go to diff View file
M plugins/git/tests/Git/Hook/PostReceiveTest.php +54 −38 Go to diff View file
M plugins/git/tests/Git/Mirror/ManifestFileGeneratorTest.php +12 −11 Go to diff View file
M plugins/git/tests/Git/Mirror/ManifestManagerTest.php +26 −43 Go to diff View file
M plugins/git/tests/Git/Notifications/NotificationsForProjectMemberCleanerTest.php +17 −22 Go to diff View file
M plugins/git/tests/Git/Permissions/DefaultFineGrainedPermissionFactoryTest.php +28 −30 Go to diff View file
M plugins/git/tests/Git/Permissions/FineGrainedPatternValidatorTest.php +2 −2 Go to diff View file
M plugins/git/tests/Git/Permissions/FineGrainedPermissionFactoryTest.php +28 −30 Go to diff View file
M plugins/git/tests/Git/Permissions/FineGrainedPermissionSorterTest.php +2 −2 Go to diff View file
M plugins/git/tests/Git/Permissions/HistoryValueFormatterTest.php +31 −70 Go to diff View file
M plugins/git/tests/Git/Permissions/PatternValidatorTest.php +50 −41 Go to diff View file
M plugins/git/tests/Git/Permissions/PermissionChangesDetectorTest.php +33 −29 Go to diff View file
M plugins/git/tests/Git/Permissions/RegexpPermissionFilterTest.php +13 −12 Go to diff View file
M plugins/git/tests/Git/RemoteServer/Gerrit/ReplicationHTTPUserAuthenticatorTest.php +18 −17 Go to diff View file
M plugins/git/tests/Git/RemoteServer/GerritCanMigrateCheckerTest.php +11 −9 Go to diff View file
M plugins/git/tests/Git/RemoteServer/GerritServerFactoryTest.php +38 −49 Go to diff View file
M plugins/git/tests/Git/RemoteServer/GerritServerTest.php +4 −3 Go to diff View file
M plugins/git/tests/Git/RemoteServer/MigrationHandlerTest.php +98 −96 Go to diff View file
M plugins/git/tests/Git/Webhook/WebhookRequestSenderTest.php +2 −1 Go to diff View file
M plugins/git/tests/GitBackendTest.php +19 −26 Go to diff View file
M plugins/git/tests/GitDriverTest.php +4 −3 Go to diff View file
M plugins/git/tests/GitPermissionsManagerTest.php +47 −45 Go to diff View file
M plugins/git/tests/GitRepositoryImplTest.php +2 −2 Go to diff View file
M plugins/git/tests/GitRepositoryTest.php +33 −36 Go to diff View file
M plugins/git/tests/GitViewsTest.php +18 −22 Go to diff View file
M plugins/git/tests/Git_ExecTest.php +3 −1 Go to diff View file
M plugins/git/tests/Git_ForkCrossProject_Test.php +31 −40 Go to diff View file
M plugins/git/tests/Git_ForkRepositories_Test.php +1 −1 Go to diff View file
M plugins/git/tests/SystemEvents/SystemEvent_GIT_EDIT_SSH_KEYSTest.php +18 −25 Go to diff View file
M plugins/git/tests/SystemEvents/SystemEvent_GIT_GERRIT_ADMIN_KEY_DUMPTest.php +32 −21 Go to diff View file
M plugins/git/tests/SystemEvents/SystemEvent_GIT_GERRIT_MIGRATIONTest.php +41 −44 Go to diff View file
M plugins/git/tests/SystemEvents/SystemEvent_GIT_GERRIT_PROJECT_READONLYTest.php +21 −23 Go to diff View file
M plugins/git/tests/SystemEvents/SystemEvent_GIT_GROKMIRROR_MANIFEST_CHECKTest.php +6 −5 Go to diff View file
M plugins/git/tests/SystemEvents/SystemEvent_GIT_REPO_DELETETest.php +14 −13 Go to diff View file
M plugins/git/tests/SystemEvents/SystemEvent_GIT_REPO_FORKTest.php +19 −21 Go to diff View file
M plugins/git/tests/SystemEvents/SystemEvent_GIT_REPO_UPDATETest.php +29 −25 Go to diff View file
M plugins/git/tests/XmlUgroupRetrieverTest.php +8 −7 Go to diff View file
M plugins/git/tests/gitPluginTest.php +28 −30 Go to diff View file