stable

Clone or download

Read-only

Refactoring our file test build

part of story #13463 Split PATCH docman_items_type/id route and add new routes Why this change: PATCH test needs a large amount of file to test that version creation properly works POST docman_item/id/version will be a duplication of a part of it, before beeing removed => We'll need to create many files in order to have the same test cover Actually adding new files can be painfull: - parent folder might have non explicit permissions - used user for test, is not the properly one (old behaviour was base on 102 who is project admin) - some files are reused on several test, and we might have test who don't really cover what we want Change-Id: I7956367ffed71dcb917b4338c5eac4891fc6e3bd

Modified Files

Name
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +84 −156 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestFilesEmbeddedTest.php +1 −1 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestFilesTest.php +203 −345 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestFoldersTest.php +1 −1 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestLinksTest.php +1 −1 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +34 −165 Go to diff View file
M plugins/docman/tests/rest/bootstrap.php +1 −0 Go to diff View file
M plugins/docman/tests/rest/helper/DocmanDataBuildCommon.php +110 −4 Go to diff View file
A plugins/docman/tests/rest/helper/DocmanFileDataBuild.php +199 −0 Go to diff View file
A plugins/docman/tests/rest/helper/DocmanTestExecutionHelper.php +156 −0 Go to diff View file