You are here

MailchimpCampaignTestBase.php in Mailchimp 8

File

tests/src/Functional/MailchimpCampaignTestBase.php
View source
<?php

namespace Drupal\Tests\mailchimp_campaign\Functional;

use Drupal\mailchimp_campaign_test\MailchimpCampaignConfigOverrider;
use Drupal\Tests\BrowserTestBase;
include_once __DIR__ . "/../../../../../lib/mailchimp-api-php/tests/src/Client.php";
include_once __DIR__ . "/../../../../../lib/mailchimp-api-php/tests/src/Mailchimp.php";
include_once __DIR__ . "/../../../../../lib/mailchimp-api-php/tests/src/MailchimpTestHttpClient.php";
include_once __DIR__ . "/../../../../../lib/mailchimp-api-php/tests/src/MailchimpTestHttpResponse.php";
include_once __DIR__ . "/../../../../../lib/mailchimp-api-php/tests/src/MailchimpCampaigns.php";

/**
 * Sets up Mailchimp Campaign module tests.
 */
abstract class MailchimpCampaignTestBase extends BrowserTestBase {

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'classy';

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    \Drupal::configFactory()
      ->addOverride(new MailchimpCampaignConfigOverrider());
  }

}

Classes

Namesort descending Description
MailchimpCampaignTestBase Sets up Mailchimp Campaign module tests.