stable
Clone or download
Read-only
This refactoring aims to remove the double validations of data done for Settings comming to REST data. In this first step, we move the building of the object in a dedicated unit tested class. In a second step, we will move all the checks done in SettingsRepresentationValidator directly in the builder to remove the double verifications. This is a followup of request #35495 Do not allow suspended or deleted user in REST SVN notifications No functionnal change expected. Change-Id: Id37e57895a9527564c98c0364dde6548070487a2
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/svn/include/REST/v1/RepositoryResource.php | +20 | −78 | Go to diff View file |
M | plugins/svn/include/SVN/Admin/ImmutableTag.php | +19 | −15 | Go to diff View file |
A | plugins/svn/include/SVN/Repository/SettingsBuilder.php | +151 | −0 | Go to diff View file |
M | plugins/svn/tests/unit/SVN/Repository/RepositoryCreatorTest.php | +4 | −4 | Go to diff View file |
A | plugins/svn/tests/unit/SVN/Repository/SettingsBuilderTest.php | +343 | −0 | Go to diff View file |