stable
Clone or download
Read-only
This is a part of story #13463 Split PATCH docman_items_type/id route How to test: - Go to the API explorer - With a file with approval table - Put a good value for the key "approval_table_action" => Return 201 and you should see this value in the plugin_docman_upload_version table - Put a bad value for the key "approval_table_action" => REturn 400 - Don't add or remove the "approval_table_action" => REturn 400 - With a file without approval table - Put a good value for the key "approval_table_action" => Return 400 - Don't add or remove the key => Return 201 Change-Id: I04324ed903081db075eb5776fcbbc3b3687ce014
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/include/REST/v1/DocmanFilesResource.php | +140 | −1 | Go to diff View file |
A | plugins/docman/include/REST/v1/Files/DocmanFileVersionCreator.php | +95 | −0 | Go to diff View file |
A | plugins/docman/include/REST/v1/Files/DocmanFileVersionPOSTRepresentation.php | +52 | −0 | Go to diff View file |
A | plugins/docman/phpunit/REST/v1/Files/DocmanFileVersionCreatorTest.php | +139 | −0 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanItemsTestFilesTest.php | +613 | −6 | Go to diff View file |
M | plugins/docman/tests/rest/DocmanDataBuilder.php | +4 | −4 | Go to diff View file |
M | plugins/docman/tests/rest/docmanWithActivatedMetadata/DocmanHardcodedMetadataTest.php | +7 | −7 | Go to diff View file |
M | plugins/docman/tests/rest/helper/DocmanFileDataBuild.php | +95 | −4 | Go to diff View file |