Skip to content
Snippets Groups Projects
Commit 58d5a61b authored by Clemens Robbenhaar's avatar Clemens Robbenhaar
Browse files

XWIKI-18913: Rights applied for a group are not updated after multiple renames of the group page

* use simpler DocumentReference constructor
parent 04d19a56
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ void beforeEach() throws Exception
{
rights = RightsManager.getInstance();
rightsDocReference = new DocumentReference("xwiki", Collections.singletonList("Some"), "Page");
rightsDocReference = new DocumentReference("xwiki", "Some", "Page");
XWikiDocument rightsDocument = loadTestDocumentFromStore();
rightsDocument.newXObject(MockitoOldcore.GLOBAL_RIGHTS_CLASS, oldcore.getXWikiContext());
......@@ -80,10 +80,8 @@ void beforeEach() throws Exception
@Test
void replaceUserOrGroupFromAllRights() throws Exception
{
DocumentReference oldGroupName = new DocumentReference("xwiki", Collections.singletonList("XWiki"),
"GroupBefore");
DocumentReference newGroupName = new DocumentReference("xwiki", Collections.singletonList("XWiki"),
"GroupAfter");
DocumentReference oldGroupName = new DocumentReference("xwiki", "XWiki", "GroupBefore");
DocumentReference newGroupName = new DocumentReference("xwiki", "XWiki", "GroupAfter");
String oldValue = "XWiki.GroupBefore,XWiki.Some\\,OtherGroup";
String expectedValue = "XWiki.Some\\,OtherGroup,XWiki.GroupAfter";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment