static::
assertIsArray($customFields);
static::
assertCount(2,
$customFields);
static::
assertSame('Example',
$customFields['custom_test_text'
]);
static::
assertNull($customFields['custom_test_check'
]);
} public function testCustomFieldHydrationWithTranslationWithInheritance(): void
{ $definition =
$this->definitionInstanceRegistry->
get(CustomFieldTestDefinition::
class);
$id = Uuid::
randomBytes();
$context =
$this->
createContext();
$rows =
[ [ 'test.id' =>
$id,
'test.name' => 'example',
'test.customTranslated' => '{"custom_test_text": null, "custom_test_check": "0"}',
'test.translation.customTranslated' => '{"custom_test_text": null, "custom_test_check": "0"}',
'test.translation.fallback_1.customTranslated' => '{"custom_test_text": null, "custom_test_check": null}',
'test.parent.translation.customTranslated' => '{"custom_test_text": "PARENT DEUTSCH"}',
'test.parent.translation.fallback_1.customTranslated' => '{"custom_test_text": "PARENT ENGLISH", "custom_test_check": "1"}',
],
];