You are here

protected function ContentTranslationWorkflowsTest::setupUsers in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationWorkflowsTest::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\Functional

Code

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();
}