Details
-
Bug
-
Resolution: Fixed
-
Minor
-
16.10.0
-
None
-
Unit
-
Unknown
-
N/A
-
N/A
-
Description
Right now it says:
@Test
void createWhenWikiIdIsForbidden() throws Exception
{
// The wiki does not already exist
when(this.wikiDescriptorManager.exists("wikiid1")).thenReturn(false);
// Forbidden list
when(this.xwiki.Param("xwiki.virtual.reserved_wikis")).thenReturn("forbidden,wikiid1");
Throwable exception = assertThrows(WikiManagerException.class, () -> {
this.wikiManager.create("wikiid1", "wikialias1", true);
});
assertEquals("wiki id [wikiid1] is already used and is thus not available", exception.getMessage());
}
It should say it's reserved instead.