stable

Clone or download

Read-only

refactor: GroupCreatorTest should be a sociable test

Part of story #26799 associate a Tuleap project and a GitLab group No functional change. Interfaces are good but for high-level classes like GroupCreator, it's nice to be able to test all its execution, including its dependencies. It's "sort-of" an integration test, except all the API calls and DB are stubbed. The rest of the logic stays the same. It can help check that we did not break things when refactoring the inner dependencies. Change-Id: I17508330e779f6348288982b7fc04d9101829b51

Modified Files

Name
M plugins/gitlab/include/Group/GroupCreator.php +2 −2 Go to diff View file
M plugins/gitlab/include/Repository/GitlabRepositoryGroupLinkHandler.php +1 −1 Go to diff View file
D plugins/gitlab/include/Repository/HandleGitlabRepositoryGroupLink.php +0 −52 Go to diff View file
M plugins/gitlab/tests/unit/Group/GitlabRepositoryGroupLinkHandlerTest.php +9 −21 Go to diff View file
M plugins/gitlab/tests/unit/Group/GroupCreatorTest.php +90 −57 Go to diff View file
A plugins/gitlab/tests/unit/Test/Builder/GitlabProjectBuilder.php +56 −0 Go to diff View file
A plugins/gitlab/tests/unit/Test/Builder/RepositoryIntegrationBuilder.php +75 −0 Go to diff View file
M plugins/gitlab/tests/unit/Test/Stubs/BuildGitlabProjectsStub.php +5 −2 Go to diff View file
D plugins/gitlab/tests/unit/Test/Stubs/HandleGitlabRepositoryGroupLinkStub.php +0 −69 Go to diff View file