protected function EasyEmailTestBase::getAdministratorPermissions in Easy Email 2.0.x
Same name and namespace in other branches
- 8 tests/src/Functional/EasyEmailTestBase.php \Drupal\Tests\easy_email\Functional\EasyEmailTestBase::getAdministratorPermissions()
1 call to EasyEmailTestBase::getAdministratorPermissions()
- EasyEmailTestBase::setUp in tests/
src/ Functional/ EasyEmailTestBase.php
File
- tests/
src/ Functional/ EasyEmailTestBase.php, line 86
Class
- EasyEmailTestBase
- Class EasyEmailTestBase
Namespace
Drupal\Tests\easy_email\FunctionalCode
protected function getAdministratorPermissions() {
$permissions = [
'administer email types',
'administer easy_email fields',
'add email entities',
'edit email entities',
'view all email entities',
'administer filters',
];
if (!empty($this->htmlFormat)) {
$permissions[] = $this->htmlFormat
->getPermissionName();
}
return $permissions;
}