protected function ContentTranslationTestBase::setupUsers in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::setupUsers()
- 9 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::setupUsers()
Creates and activates translator, editor and admin users.
File
- core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationTestBase.php, line 148
Class
- ContentTranslationTestBase
- Base class for content translation tests.
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function setupUsers() {
$this->translator = $this
->drupalCreateUser($this
->getTranslatorPermissions(), 'translator');
$this->editor = $this
->drupalCreateUser($this
->getEditorPermissions(), 'editor');
$this->administrator = $this
->drupalCreateUser($this
->getAdministratorPermissions(), 'administrator');
$this
->drupalLogin($this->translator);
}