protected function WebformTranslationPermissionsTest::setUp in Webform Translation Permissions 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ WebformTranslationPermissionsTest.php, line 79
Class
- WebformTranslationPermissionsTest
- Contains tests for the Webform Translation Permissions module.
Namespace
Drupal\Tests\webform_translation_permissions\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this
->createUser([], NULL, TRUE);
$this->translateConfigUser = $this
->createUser([
'translate configuration',
]);
$this->translateAnyWebformUser = $this
->createUser([
'translate any webform',
]);
$this->translateOwnWebformUser = $this
->createUser([
'translate own webform',
]);
$this->user = $this
->createUser([]);
$this->webform1 = $this
->createWebform([
'uid' => $this->translateOwnWebformUser
->id(),
]);
$this->webform2 = $this
->createWebform();
}