protected function YamlFormHandlerEmailAdvancedTest::createUsers in YAML Form 8
Create form test users.
Overrides YamlFormTestTrait::createUsers
File
- src/
Tests/ YamlFormHandlerEmailAdvancedTest.php, line 19
Class
- YamlFormHandlerEmailAdvancedTest
- Tests for advanced email form handler functionality with HTML and attachments.
Namespace
Drupal\yamlform\TestsCode
protected function createUsers() {
// Create filter.
$this
->createFilters();
$this->normalUser = $this
->drupalCreateUser([
'access user profiles',
'access content',
$this->basicHtmlFilter
->getPermissionName(),
]);
$this->adminFormUser = $this
->drupalCreateUser([
'access user profiles',
'access content',
'administer yamlform',
'administer blocks',
'administer nodes',
'administer users',
$this->basicHtmlFilter
->getPermissionName(),
]);
$this->adminSubmissionUser = $this
->drupalCreateUser([
'access user profiles',
'access content',
'administer yamlform submission',
$this->basicHtmlFilter
->getPermissionName(),
]);
}