diff --git a/modules/apps/layout/layout-admin-web-test/src/testIntegration/java/com/liferay/layout/admin/web/internal/portlet/action/test/CopyLayoutMVCActionCommandTest.java b/modules/apps/layout/layout-admin-web-test/src/testIntegration/java/com/liferay/layout/admin/web/internal/portlet/action/test/CopyLayoutMVCActionCommandTest.java index 77feb730d936b6..4db7eac59b8350 100644 --- a/modules/apps/layout/layout-admin-web-test/src/testIntegration/java/com/liferay/layout/admin/web/internal/portlet/action/test/CopyLayoutMVCActionCommandTest.java +++ b/modules/apps/layout/layout-admin-web-test/src/testIntegration/java/com/liferay/layout/admin/web/internal/portlet/action/test/CopyLayoutMVCActionCommandTest.java @@ -426,9 +426,6 @@ private void _processAction( MockLiferayPortletActionRequest mockLiferayPortletActionRequest = new MockLiferayPortletActionRequest(); - mockLiferayPortletActionRequest.setAttribute( - WebKeys.THEME_DISPLAY, _getThemeDisplay()); - mockLiferayPortletActionRequest.addParameter( "copyPermissions", String.valueOf(copyPermissions)); mockLiferayPortletActionRequest.addParameter( @@ -444,6 +441,9 @@ private void _processAction( entry.getKey(), entry.getValue()); } + mockLiferayPortletActionRequest.setAttribute( + WebKeys.THEME_DISPLAY, _getThemeDisplay()); + _mvcActionCommand.processAction( mockLiferayPortletActionRequest, new MockLiferayPortletActionResponse());