stable

Clone or download

Read-only

Don't link program to itself (Rest part)

This is part of story #21792 define Teams associated to Programs How to test: - Use API rest project/:id/program_teams - In id -> put a project that's not a program - In team_ids -> put the same id Expected results: - An error is thrown "Program can not be a Team itself" Change-Id: I39d5cef87b21138555532a45f48b391eb7c3a6af

Modified Files

Name
A plugins/program_management/include/Domain/Program/ProgramIsTeamException.php +33 −0 Go to diff View file
M plugins/program_management/include/Domain/Team/Creation/CreateTeam.php +2 −0 Go to diff View file
M plugins/program_management/include/Domain/Team/Creation/TeamCreator.php +6 −0 Go to diff View file
M plugins/program_management/include/REST/v1/ProjectResource.php +2 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Team/TeamCreatorTest.php +52 −28 Go to diff View file