/**
* @var \Drupal\content_translation\ContentTranslationManagerInterface
*/
protected $manager;
/**
* {@inheritdoc}
*/
protected function setUp(): void
{ parent::
setUp();
$this->
setupLanguages();
$this->
setupBundle();
$this->
enableTranslation();
$this->
setupUsers();
$this->
setupTestFields();
$this->manager =
$this->container->
get('content_translation.manager'
);
$this->controller =
$this->manager->
getTranslationHandler($this->entityTypeId
);
// Rebuild the container so that the new languages are picked up by services
// that hold a list of languages.
$this->
rebuildContainer();
}