From be059a284308ca454724cd8fdd369fa96e3e5dc6 Mon Sep 17 00:00:00 2001 From: Thorsten Reiter Date: Sat, 29 Jun 2024 10:54:49 +0200 Subject: [PATCH] minor change --- .../ContentService/UpdateContentTest.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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'