function ContentTranslationWorkflowsTest::setupUsers
Creates and activates translator, editor and admin users.
Overrides ContentTranslationTestBase::setupUsers
File
-
core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationWorkflowsTest.php, line 117
Class
- ContentTranslationWorkflowsTest
- Tests the content translation workflows for the test entity.
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function setupUsers() {
$this->entityOwner = $this->drupalCreateUser($this->getEntityOwnerPermissions(), 'entity_owner');
$this->notEntityOwner = $this->drupalCreateUser();
$this->notEntityOwner
->set('roles', $this->entityOwner
->getRoles(TRUE));
$this->notEntityOwner
->save();
parent::setupUsers();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.