stable

Clone or download

Read-only

Refactor the checking and the retrieving of the item status metadata

This is a part of the story #13417 Finish PATCH update hardcoded metadata The retrieveing of the item status ID in the creator and updator classes is now done via 1 method instead of 2 methods No functionnal change expected Change-Id: Id0f6af4350f4cca6cc183917da1ff234dacd8b92

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanEmbeddedFilesResource.php +2 −5 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemCreator.php +0 −15 Go to diff View file
M plugins/docman/include/REST/v1/DocmanLinksResource.php +1 −5 Go to diff View file
M plugins/docman/include/REST/v1/DocmanWikiResource.php +1 −4 Go to diff View file
M plugins/docman/include/REST/v1/EmbeddedFiles/DocmanEmbeddedFileUpdator.php +3 −33 Go to diff View file
M plugins/docman/include/REST/v1/Folders/DocmanItemCreatorBuilder.php +1 −6 Go to diff View file
M plugins/docman/include/REST/v1/Links/DocmanLinkUpdator.php +0 −16 Go to diff View file
D plugins/docman/include/REST/v1/Metadata/HardcodedMetadataUsageChecker.php +0 −48 Go to diff View file
M plugins/docman/include/REST/v1/Metadata/ItemStatusMapper.php +17 −0 Go to diff View file
M plugins/docman/include/REST/v1/Wiki/DocmanWikiUpdator.php +3 −24 Go to diff View file
D plugins/docman/phpunit/Metadata/HardcodedMetadataUsageCheckerTest.php +0 −82 Go to diff View file
M plugins/docman/phpunit/Metadata/ItemStatusMapperTest.php +36 −6 Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php +3 −96 Go to diff View file