'customTranslated' =>
[ 'root' => 'test',
],
],
'de-DE' =>
[ 'customTranslated' => null,
],
],
];
$chain =
[$this->
getDeDeLanguageId(), Defaults::LANGUAGE_SYSTEM
];
$repo =
$this->
getTestRepository();
$context = Context::
createDefaultContext();
$repo->
create([$entity],
$context);
$context =
new Context(new SystemSource(),
[], Defaults::CURRENCY,
$chain);
$result =
$repo->
search(new Criteria([$id]),
$context)->
first();
static::
assertInstanceOf(Entity::
class,
$result);
static::
assertNull($result->
get('customTranslated'
));
static::
assertNotNull($result->
getTranslation('customTranslated'
));
}