'apiAlias' => 'test-struct',
],
],
'apiAlias' => 'test-struct',
],
$encoded );
} public function testApiAwareForTranslatedFields(): void
{ $entity =
new MyEntity();
$entity->
setId(Uuid::
randomHex());
$entity->
setName('test'
);
$entity->
setDescription('test'
);
$entity->
setTranslated([ 'name' => 'test',
'description' => 'test',
]);
$registry =
$this->
createMock(DefinitionRegistryChain::
class);
$registry->
method('has'
) ->
willReturn(true
);