stable

Clone or download

Read-only

A team must not be defined as a program

This is part of story #21792 define Teams associated to Programs How to test: - Have a team id - Use PUT project/:id/team - As program_id, use the team id Expected results: - Error is thrown 'Project can not be a team because it is already a program' Change-Id: I53176ea80c1bc109c882688e04d3a3461c941450

Modified Files

Name
M plugins/program_management/include/Adapter/Program/Plan/ProgramAdapter.php +18 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/BuildProgram.php +1 −1 Go to diff View file
A plugins/program_management/include/Domain/Program/Plan/ProgramIsATeamException.php +45 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/ToBeCreatedProgram.php +2 −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 +2 −0 Go to diff View file
M plugins/program_management/include/REST/v1/ProgramIncrementResource.php +3 −1 Go to diff View file
M plugins/program_management/include/REST/v1/ProjectResource.php +6 −2 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +4 −3 Go to diff View file
M plugins/program_management/site-content/fr_FR/LC_MESSAGES/tuleap-program_management.po +6 −0 Go to diff View file
M plugins/program_management/tests/rest/v1/Helper/ProgramDataBuilder.php +2 −1 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Plan/ProgramAdapterTest.php +22 −1 Go to diff View file