Skip to content

Commit

Permalink
LPD-29389 Sort by mockLiferayPortletActionRequest.*
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Sep 4, 2024
1 parent 64e4482 commit 1977f2a
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,14 @@ private void _processActionRequestInPublication(
MockLiferayPortletActionRequest mockLiferayPortletActionRequest =
new MockLiferayPortletActionRequest();

mockLiferayPortletActionRequest.addParameter(
ActionRequest.ACTION_NAME, actionName);

for (Map.Entry<String, String> entry : params.entrySet()) {
mockLiferayPortletActionRequest.addParameter(
entry.getKey(), entry.getValue());
}

mockLiferayPortletActionRequest.setAttribute(
PortletServlet.PORTLET_SERVLET_REQUEST,
mockLiferayPortletActionRequest.getHttpServletRequest());
Expand All @@ -738,14 +746,6 @@ private void _processActionRequestInPublication(
mockLiferayPortletActionRequest.setAttribute(
WebKeys.THEME_DISPLAY, _getThemeDisplay());

mockLiferayPortletActionRequest.addParameter(
ActionRequest.ACTION_NAME, actionName);

for (Map.Entry<String, String> entry : params.entrySet()) {
mockLiferayPortletActionRequest.addParameter(
entry.getKey(), entry.getValue());
}

LiferayActionRequest liferayActionRequest = ActionRequestFactory.create(
mockLiferayPortletActionRequest.getHttpServletRequest(),
_portletLocalService.getPortletById(
Expand Down

0 comments on commit 1977f2a

Please sign in to comment.