Skip to content
Snippets Groups Projects
Commit 12c8c0dd authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

[misc] Fix preference language mock

parent dc9a255f
No related branches found
No related tags found
No related merge requests found
......@@ -371,8 +371,6 @@ && getMocker().getInstance(Environment.class) instanceof ServletEnvironment) {
// XWiki
doReturn("en").when(getSpyXWiki()).getLanguagePreference(anyXWikiContext());
doAnswer(new Answer<XWikiDocument>()
{
@Override
......@@ -583,6 +581,8 @@ public String answer(InvocationOnMock invocation) throws Throwable
}
}).when(getSpyXWiki()).getLanguagePreference(anyXWikiContext());
getXWikiContext().setLocale(Locale.ENGLISH);
// XWikiStoreInterface
when(getMockStore().getTranslationList(anyXWikiDocument(), anyXWikiContext())).then(new Answer<List<String>>()
......
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