foreach (entity_test_entity_types() as $entity_type_id) { // The entity_test schema is installed by the parent.
if ($entity_type_id != 'entity_test'
) { $this->
installEntitySchema($entity_type_id);
} } $this->
installConfig(['language'
]);
// Create the test field.
$this->container->
get('module_handler'
)->
loadInclude('entity_test', 'install'
);
entity_test_install();
// Enable translations for the test entity type.
$this->state->
set('entity_test.translation', TRUE
);
// Create a translatable test field.
$this->fieldName =
mb_strtolower($this->
randomMachineName() . '_field_name'
);
// Create an untranslatable test field.
$this->untranslatableFieldName =
mb_strtolower($this->
randomMachineName() . '_field_name'
);
// Create field fields in all entity variations.