mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix to SiteService test related to ability to restore deleted sites
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28935 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -690,9 +690,8 @@ public class SiteServiceImplTest extends BaseAlfrescoSpringTest
|
||||
// Delete the site
|
||||
this.siteService.deleteSite(siteShortName);
|
||||
assertNull(this.siteService.getSite(siteShortName));
|
||||
// See ALF-7888. Deleted sites should go straight to /dev/null (via the SiteService)
|
||||
NodeRef archivedNodeRef = nodeArchiveService.getArchivedNode(siteInfo.getNodeRef());
|
||||
assertFalse("Deleted sites should not appear in the Trash.", nodeService.exists(archivedNodeRef));
|
||||
assertTrue("Deleted sites can be recovered from the Trash.", nodeService.exists(archivedNodeRef));
|
||||
|
||||
// Ensure that all the related site groups are deleted
|
||||
assertFalse(authorityService.authorityExists(((SiteServiceImpl)smallSiteService).getSiteGroup(siteShortName, true)));
|
||||
|
Reference in New Issue
Block a user