@Test public void testDeleteAttachmentsWhenDeletingWikiPage() throws Exception { int initialFileEntriesCount = DLFileEntryLocalServiceUtil.getFileEntriesCount(); addWikiPageAttachment(); Assert.assertEquals( initialFileEntriesCount + 1, DLFileEntryLocalServiceUtil.getFileEntriesCount()); WikiPageLocalServiceUtil.deletePage(_page.getNodeId(), _page.getTitle()); Assert.assertEquals(initialFileEntriesCount, DLFileEntryLocalServiceUtil.getFileEntriesCount()); }
@Override public int getPortletFileEntriesCount(long groupId, long folderId, int status) throws SystemException { return DLFileEntryLocalServiceUtil.getFileEntriesCount(groupId, folderId, status); }