stable

Clone or download

Read-only

Refactor add of user to a project

Get rid of account_add_user_to_group_obj for a unit tested object. No functional change yet. Part of story #13490 have a consistent management of project & groups members. Change-Id: I3e7435c73b9414579df1d7d7d4ef12bd1e388097

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/AdminController.class.php +2 −4 Go to diff View file
M plugins/agiledashboard/include/Planning/PlanningController.class.php +2 −4 Go to diff View file
M site-content/en_US/include/include.tab +0 −1 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +13 −0 Go to diff View file
M site-content/fr_FR/include/include.tab +0 −1 Go to diff View file
M src/common/CLI/Command/ImportProjectXMLCommand.php +2 −4 Go to diff View file
M src/common/Project/OneStepCreation/OneStepCreationController.class.php +1 −1 Go to diff View file
M src/common/Project/ProjectUGroup.php +1 −6 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +1 −1 Go to diff View file
M src/common/Project/UGroupManager.class.php +2 −8 Go to diff View file
A src/common/Project/UGroups/Membership/DynamicUGroups/AddProjectMember.php +104 −0 Go to diff View file
A src/common/Project/UGroups/Membership/DynamicUGroups/AlreadyProjectMemberException.php +28 −0 Go to diff View file
A src/common/Project/UGroups/Membership/DynamicUGroups/NoEmailForUserException.php +28 −0 Go to diff View file
M src/common/Project/UGroups/Membership/DynamicUGroups/ProjectMemberAdderWithStatusCheckAndNotifications.php +76 −8 Go to diff View file
M src/common/Project/UGroups/Membership/DynamicUGroups/ProjectMemberAdderWithoutStatusCheckAndNotifications.php +20 −8 Go to diff View file
M src/common/Project/UserPermissionsDao.php +7 −1 Go to diff View file
M src/common/Request/RouteCollector.php +3 −9 Go to diff View file
M src/common/User/User.class.php +11 −0 Go to diff View file
A src/common/mail/MailFactory.php +34 −0 Go to diff View file
M src/www/include/account.php +1 −116 Go to diff View file
M src/www/project/admin/userimport.php +1 −6 Go to diff View file
M src/www/soap/project/index.php +1 −1 Go to diff View file
M tests/integration/ProjectCreationTest.php +1 −1 Go to diff View file
M tests/integration/ProjectImportTest.php +1 −1 Go to diff View file
A tests/phpunit/common/Project/UGroups/Membership/DynamicUGroups/AddProjectMemberTest.php +207 −0 Go to diff View file
A tests/phpunit/common/Project/UGroups/Membership/DynamicUGroups/ProjectMemberAdderWithStatusCheckAndNotificationsTest.php +167 −0 Go to diff View file
A tests/phpunit/common/Project/UGroups/Membership/DynamicUGroups/ProjectMemberAdderWithoutStatusCheckAndNotificationsTest.php +90 −0 Go to diff View file
A tests/phpunit/common/Project/UGroups/Membership/DynamicUGroups/_fixtures/empty.php +22 −0 Go to diff View file