You are here

public function LiftCustomFieldTest::setUp in Mautic Integration 8

Perform initial setup tasks that run before every test method.

Overrides BrowserTestBase::setUp

File

tests/src/Functional/LiftCustomFieldTest.php, line 30

Class

LiftCustomFieldTest
Functional tests for the Mautic module.

Namespace

Drupal\Tests\mautic\Functional

Code

public function setUp() {
  $this
    ->checkRequirements();
  parent::setUp();

  // Mautic settings
  $this->config = \Drupal::configFactory()
    ->getEditable('mautic.settings');

  // Mautic module on
  $this->config
    ->set('mautic_enable', true);

  // Create user
  $user = $this
    ->drupalCreateUser(array(
    'administer site configuration',
    'administer content types',
  ));

  // Login.
  $this
    ->drupalLogin($user);
}