Skip to content

Commit

Permalink
LPD-29327 Move _liferayPortletRequest initialization to _setUpPortalU…
Browse files Browse the repository at this point in the history
…til as it needs to be initialized first
  • Loading branch information
lfbesada authored and brianchandotcom committed Jun 25, 2024
1 parent 098bdc3 commit abc4222
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public void setUp() throws Exception {
_setUpPortalUtil();

_layoutActionsHelper = Mockito.mock(LayoutActionsHelper.class);
_liferayPortletRequest = new MockLiferayPortletActionRequest();

_layoutsAdminDisplayContext = new LayoutsAdminDisplayContext(
null, _layoutActionsHelper, null, null, _liferayPortletRequest,
Expand Down Expand Up @@ -197,6 +196,8 @@ private void _setUpPortalUtil() {

_portal = Mockito.mock(Portal.class);

_liferayPortletRequest = new MockLiferayPortletActionRequest();

MockLiferayPortletURL liferayPortletURL = new MockLiferayPortletURL();

liferayPortletURL.setPortletId(LayoutAdminPortletKeys.GROUP_PAGES);
Expand Down

0 comments on commit abc4222

Please sign in to comment.