/**
* @dataProvider provideTranslatedDefinitions
*/
public function testTranslationsOnDefinitionsWithLanguageId(string
$baseDefinitionClass, string
$translationDefinitionClass): void
{ /** @var EntityDefinition $baseDefinition */
$baseDefinition =
$this->
getContainer()->
get($baseDefinitionClass);
/** @var EntityTranslationDefinition $translationDefinition */
$translationDefinition =
$this->
getContainer()->
get($translationDefinitionClass);
static::
assertSame($translationDefinition,
$baseDefinition->
getTranslationDefinition());
static::
assertInstanceOf(JsonField::
class,
$baseDefinition->
getFields()->
get('translated'
));
} /**
* @dataProvider provideTranslatedDefinitions
*/
public function testTranslationsOnDefinitionsWithLanguageIdInOtherOrder(string
$baseDefinitionClass, string
$translationDefinitionClass): void
{ /** @var EntityDefinition $baseDefinition */
$baseDefinition =
$this->
getContainer()->
get($baseDefinitionClass);
/** @var EntityTranslationDefinition $translationDefinition */