You are here

protected function MandrillReportsTestCase::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_reports/tests/src/Functional/MandrillReportsTestCase.php, line 32
Test class and methods for the Mandrill Reports module.

Class

MandrillReportsTestCase
Test Mandrill Reports functionality.

Namespace

Drupal\mandrill_reports\Tests

Code

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