function SendgridIntegrationTestCase::setUp in SendGrid Integration 8.2
Same name and namespace in other branches
- 8 tests/sendgrid_integration.test \SendgridIntegrationTestCase::setUp()
- 7 tests/sendgrid_integration.test \SendgridIntegrationTestCase::setUp()
File
- tests/sendgrid_integration.test, line 41
- Contains tests for the Sendgrid Integration module.
Class
- SendgridIntegrationTestCase
- Test case.
Code
function setUp() {
$modules[] = 'sendgrid_integration';
parent::setUp($modules);
$this->web_user = $this
->drupalCreateUser();
$this->admin_user = $this
->drupalCreateUser([
'access content',
'create page content',
'edit own page content',
'administer users',
'administer permissions',
]);
$this
->drupalLogin($this->admin_user);
$this
->drupalPost('user/' . $this->admin_user->uid . '/edit', [
'roles[3]' => TRUE,
], t('Save'));
}