You are here

protected function MandrillActivityTestCase::setUp in Mandrill 8

Pre-test setup function.

Enables dependencies. Sets the mandrill_api_key variable to the test key.

Overrides BrowserTestBase::setUp

File

modules/mandrill_activity/tests/src/Functional/MandrillActivityTestCase.php, line 32
Test class and methods for the Mandrill Activity module.

Class

MandrillActivityTestCase
Test Mandrill Activity functionality.

Namespace

Drupal\mandrill_activity\Tests

Code

protected function setUp() {
  parent::setUp();
  $config = \Drupal::service('config.factory')
    ->getEditable('mandrill.settings');
  $config
    ->set('mandrill_api_key', 'MANDRILL_TEST_API_KEY');
}