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(