diff --git a/tests/integration/Core/Repository/ContentService/UpdateContentTest.php b/tests/integration/Core/Repository/ContentService/UpdateContentTest.php index ddb72de375..3953d76c30 100644 --- a/tests/integration/Core/Repository/ContentService/UpdateContentTest.php +++ b/tests/integration/Core/Repository/ContentService/UpdateContentTest.php @@ -38,15 +38,15 @@ public function testUpdateContentHavingPrivateRelation(): void $folderType = $contentTypeService->loadContentTypeByIdentifier('folder'); $folderTypeDraft = $contentTypeService->createContentTypeDraft($folderType); - $titleFieldCreateStruct = $contentTypeService->newFieldDefinitionCreateStruct('relations', 'ezobjectrelationlist'); - $titleFieldCreateStruct->names = ['eng-GB' => 'Relations']; - $titleFieldCreateStruct->descriptions = ['eng-GB' => 'Relations']; - $titleFieldCreateStruct->fieldGroup = 'content'; - $titleFieldCreateStruct->position = 10; - $titleFieldCreateStruct->isTranslatable = false; - $titleFieldCreateStruct->isRequired = false; - $titleFieldCreateStruct->isSearchable = false; - $contentTypeService->addFieldDefinition($folderTypeDraft, $titleFieldCreateStruct); + $relationsFieldCreateStruct = $contentTypeService->newFieldDefinitionCreateStruct('relations', 'ezobjectrelationlist'); + $relationsFieldCreateStruct->names = ['eng-GB' => 'Relations']; + $relationsFieldCreateStruct->descriptions = ['eng-GB' => 'Relations']; + $relationsFieldCreateStruct->fieldGroup = 'content'; + $relationsFieldCreateStruct->position = 10; + $relationsFieldCreateStruct->isTranslatable = false; + $relationsFieldCreateStruct->isRequired = false; + $relationsFieldCreateStruct->isSearchable = false; + $contentTypeService->addFieldDefinition($folderTypeDraft, $relationsFieldCreateStruct); $contentTypeService->publishContentTypeDraft($folderTypeDraft); // 2. Add Section 'private'