protected function ContentTranslationTestBase::setupUsers in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/content_translation/src/Tests/ContentTranslationTestBase.php \Drupal\content_translation\Tests\ContentTranslationTestBase::setupUsers()
Creates and activates translator, editor and admin users.
1 call to ContentTranslationTestBase::setupUsers()
- ContentTranslationTestBase::setUp in core/
modules/ content_translation/ src/ Tests/ ContentTranslationTestBase.php - Sets up a Drupal site for running functional and integration tests.
File
- core/
modules/ content_translation/ src/ Tests/ ContentTranslationTestBase.php, line 150 - Contains \Drupal\content_translation\Tests\ContentTranslationTestBase.
Class
- ContentTranslationTestBase
- Base class for content translation tests.
Namespace
Drupal\content_translation\TestsCode
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);
}