function ContentTranslationWorkflowsTest::setupUsers
Same name in other branches
- 9 core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationWorkflowsTest::setupUsers()
- 10 core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationWorkflowsTest::setupUsers()
Overrides ContentTranslationTestBase::setupUsers
File
-
core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationWorkflowsTest.php, line 118
Class
- ContentTranslationWorkflowsTest
- Tests the content translation workflows for the test entity.
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function setupUsers() : void {
$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.