You are here

protected function FunctionalMailchimpTestBase::setUp in Mailchimp 8

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

Overrides BrowserTestBase::setUp

1 call to FunctionalMailchimpTestBase::setUp()
MailchimpSignupFormTest::setUp in modules/mailchimp_signup/tests/src/Functional/MailchimpSignupFormTest.php
1 method overrides FunctionalMailchimpTestBase::setUp()
MailchimpSignupFormTest::setUp in modules/mailchimp_signup/tests/src/Functional/MailchimpSignupFormTest.php

File

tests/src/Functional/FunctionalMailchimpTestBase.php, line 73

Class

FunctionalMailchimpTestBase
Sets up Mailchimp module tests.

Namespace

Drupal\Tests\mailchimp\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalPlaceBlock('page_title_block');
  $this->lowUser = $this
    ->drupalCreateUser();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer mailchimp',
  ]);
  if ($this::$override) {
    \Drupal::configFactory()
      ->addOverride(new MailchimpConfigOverrider());
  }
}