You are here

protected function MailchimpSignupFormTest::setUp in Mailchimp 8

Same name and namespace in other branches
  1. 2.x modules/mailchimp_signup/tests/src/Functional/MailchimpSignupFormTest.php \Drupal\Tests\mailchimp_signup\Functional\MailchimpSignupFormTest::setUp()

Overrides FunctionalMailchimpTestBase::setUp

File

modules/mailchimp_signup/tests/src/Functional/MailchimpSignupFormTest.php, line 23

Class

MailchimpSignupFormTest
Tests the Mailchimp signup form.

Namespace

Drupal\Tests\mailchimp_signup\Functional

Code

protected function setUp() {
  parent::setUp();
  $rid = $this->adminUser
    ->getRoles()[1];
  $this
    ->grantPermissions(Role::load($rid), [
    'access mailchimp signup pages',
    'administer mailchimp signup entities',
  ]);
}