diff --git a/modules/apps/fragment/fragment-test/src/testIntegration/java/com/liferay/fragment/input/template/parser/test/FragmentEntryInputTemplateNodeContextHelperTest.java b/modules/apps/fragment/fragment-test/src/testIntegration/java/com/liferay/fragment/input/template/parser/test/FragmentEntryInputTemplateNodeContextHelperTest.java index 9b1a583a4e3eab..08be476e853f69 100644 --- a/modules/apps/fragment/fragment-test/src/testIntegration/java/com/liferay/fragment/input/template/parser/test/FragmentEntryInputTemplateNodeContextHelperTest.java +++ b/modules/apps/fragment/fragment-test/src/testIntegration/java/com/liferay/fragment/input/template/parser/test/FragmentEntryInputTemplateNodeContextHelperTest.java @@ -496,7 +496,7 @@ private ObjectDefinition _addObjectDefinition() throws Exception { true, ObjectDefinitionConstants.SCOPE_SITE, ObjectDefinitionConstants.STORAGE_TYPE_DEFAULT, objectFields); - ObjectField objectField = ObjectFieldUtil.addCustomObjectField( + ObjectField myTextObjectField = ObjectFieldUtil.addCustomObjectField( new TextObjectFieldBuilder( ).userId( TestPropsValues.getUserId() @@ -512,7 +512,8 @@ private ObjectDefinition _addObjectDefinition() throws Exception { objectDefinition.getObjectDefinitionId() ).build()); - objectDefinition.setTitleObjectFieldId(objectField.getObjectFieldId()); + objectDefinition.setTitleObjectFieldId( + myTextObjectField.getObjectFieldId()); objectDefinition = _objectDefinitionLocalService.updateObjectDefinition( objectDefinition);