/**
* @dataProvider provideTranslatedDefinitions
*/
public function testTranslationParentDefinition(string
$baseDefinitionClass, string
$translationDefinitionClass): void
{ /** @var EntityDefinition $baseDefinition */
$baseDefinition =
$this->
getContainer()->
get($baseDefinitionClass);
/** @var EntityTranslationDefinition $translationDefinition */
$translationDefinition =
$this->
getContainer()->
get($translationDefinitionClass);
static::
assertSame($baseDefinition->
getClass(),
$translationDefinition->
getParentDefinition()->
getClass());
static::
assertSame($baseDefinition,
$translationDefinition->
getParentDefinition());
} public static function provideTranslatedDefinitions(): array
{ return [ [CmsPageDefinition::
class, CmsPageTranslationDefinition::
class],
[CmsSlotDefinition::
class, CmsSlotTranslationDefinition::
class],
[PropertyGroupDefinition::
class, PropertyGroupTranslationDefinition::
class],
[StateMachineDefinition::
class, StateMachineTranslationDefinition::
class],
[StateMachineStateDefinition::
class, StateMachineStateTranslationDefinition::
class],
[