From ea9e91dd1de379fdc9d2282b23d1b07d31afb02e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lourdes=20Fern=C3=A1ndez=20Besada?= Date: Thu, 7 Nov 2024 12:12:22 +0100 Subject: [PATCH] LPD-40373 SF assert the parent folder --- .../resource/v1_0/test/DisplayPageTemplateResourceTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/apps/headless/headless-admin-site/headless-admin-site-test/src/testIntegration/java/com/liferay/headless/admin/site/resource/v1_0/test/DisplayPageTemplateResourceTest.java b/modules/apps/headless/headless-admin-site/headless-admin-site-test/src/testIntegration/java/com/liferay/headless/admin/site/resource/v1_0/test/DisplayPageTemplateResourceTest.java index 4c9f70db9757d0..e09341824ea8bc 100644 --- a/modules/apps/headless/headless-admin-site/headless-admin-site-test/src/testIntegration/java/com/liferay/headless/admin/site/resource/v1_0/test/DisplayPageTemplateResourceTest.java +++ b/modules/apps/headless/headless-admin-site/headless-admin-site-test/src/testIntegration/java/com/liferay/headless/admin/site/resource/v1_0/test/DisplayPageTemplateResourceTest.java @@ -512,11 +512,13 @@ private void _testPostSiteSiteByExternalReferenceCodeDisplayPageTemplateWithPare assertValid(postDisplayPageTemplate); DisplayPageTemplateFolder displayPageTemplateFolder = + displayPageTemplate.getParentFolder(); + DisplayPageTemplateFolder postDisplayPageTemplateFolder = postDisplayPageTemplate.getParentFolder(); Assert.assertEquals( - layoutPageTemplateCollection.getExternalReferenceCode(), - displayPageTemplateFolder.getExternalReferenceCode()); + displayPageTemplateFolder.getExternalReferenceCode(), + postDisplayPageTemplateFolder.getExternalReferenceCode()); } private void _testPutSiteSiteByExternalReferenceCodeDisplayPageTemplate(