APPS-139 fix unit test

This commit is contained in:
Roxana Lucanu
2020-06-10 08:53:58 +03:00
parent bbdcfef32c
commit 6a12b25d15

View File

@@ -313,7 +313,7 @@ public class DeclareAsVersionRecordActionUnitTest extends BaseActionUnitTest
doReturn(TYPE_RECORD_FOLDER).when(mockedNodeService).getType(destinationRecordFolderNodeRef);
// capability check
doReturn(true).when(mockedCapabilityService).hasCapability(destinationRecordFolderNodeRef, "EditRecordMetadata");
doReturn(true).when(mockedCapabilityService).hasCapability(destinationRecordFolderNodeRef, "FileVersionRecords");
// file plan service
doReturn(filePlan).when(mockedFilePlanService).getFilePlanBySiteId(FilePlanService.DEFAULT_RM_SITE_ID);