Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::createEntity().
Overrides EntityTranslationUITest::createEntity
protected function createEntity($values, $langcode, $bundle_name = NULL) {
if (isset($bundle_name)) {
$vocabulary = taxonomy_vocabulary_machine_name_load($bundle_name);
}
else {
$vocabulary = $this->vocabulary;
}
// Term needs vid to be saved.
$values['vid'] = $vocabulary
->id();
return parent::createEntity($values, $langcode, $bundle_name);
}