You are here

protected function LingotekTestBase::createTranslationManagerUser in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::createTranslationManagerUser()
  2. 3.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::createTranslationManagerUser()
  3. 3.1.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::createTranslationManagerUser()
  4. 3.2.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::createTranslationManagerUser()
  5. 3.3.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::createTranslationManagerUser()
  6. 3.4.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::createTranslationManagerUser()
  7. 3.5.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::createTranslationManagerUser()
  8. 3.6.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::createTranslationManagerUser()
  9. 3.7.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::createTranslationManagerUser()
  10. 3.8.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::createTranslationManagerUser()

Creates a translation manager role and a user with the minimal Lingotek translation management permissions.

1 call to LingotekTestBase::createTranslationManagerUser()
LingotekTestBase::setUp in tests/src/Functional/LingotekTestBase.php

File

tests/src/Functional/LingotekTestBase.php, line 71

Class

LingotekTestBase
Base class for Lingotek test. Performs authorization of the account.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function createTranslationManagerUser() {
  $this->translationManagerUser = $this
    ->drupalCreateUser([
    'assign lingotek translation profiles',
    'manage lingotek translations',
    'access administration pages',
  ]);
}