/** * Overrides \Drupal\content_translation\Tests\ContentTranslationUITest::getNewEntityValues(). */ protected function getNewEntityValues($langcode) { $user = $this->drupalCreateUser(); return array('name' => $this->randomMachineName(), 'user_id' => $user->id()) + parent::getNewEntityValues($langcode); }
/** * Overrides \Drupal\content_translation\Tests\ContentTranslationUITest::getTranslatorPermission(). */ protected function getTranslatorPermissions() { return array_merge(parent::getTranslatorPermissions(), array('administer entity_test content')); }