protected function ContentTranslationWorkflowsTest::setupUsers in Drupal 9
Same name and namespace in other branches
- 10 core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationWorkflowsTest::setupUsers()
Creates and activates translator, editor and admin users.
Overrides ContentTranslationTestBase::setupUsers
File
- core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationWorkflowsTest.php, line 114
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();
}