Creates and activates a translator user.
File
- drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationUITest.php, line 111
- Definition of Drupal\entity\Tests\EntityTranslationUITest.
Class
- EntityTranslationUITest
- Tests the Entity Translation UI.
Namespace
Drupal\translation_entity\Tests
Code
protected function setupTranslator() {
$translator = $this
->drupalCreateUser($this
->getTranslatorPermissions());
$this
->drupalLogin($translator);
}