You are here

class DrupalMandrillTest in Mandrill 7.2

Hierarchy

Expanded class hierarchy of DrupalMandrillTest

5 string references to 'DrupalMandrillTest'
MandrillActivityTestCase::setUp in modules/mandrill_activity/tests/mandrill_activity.test
Pre-test setup function.
MandrillHooksTestCase::setUp in tests/mandrill_hooks.test
Pre-test setup function.
MandrillReportsTestCase::setUp in modules/mandrill_reports/tests/mandrill_reports.test
Pre-test setup function.
MandrillTemplateTestCase::setUp in modules/mandrill_template/tests/mandrill_template.test
Pre-test setup function.
MandrillTestCase::setUp in tests/mandrill.test
Pre-test setup function.

File

tests/includes/mandrill_test.inc, line 15

View source
class DrupalMandrillTest extends DrupalMandrill {

  /**
   * @see DrupalMandrill::__construct()
   */
  public function __construct($apikey = NULL, $timeout = 60) {
    parent::__construct($apikey, $timeout);

    // Set up test classes.
    $this->messages = new Mandrill_MessagesTest($this);
    $this->senders = new Mandrill_SendersTest($this);
    $this->subaccounts = new Mandrill_SubaccountsTest($this);
    $this->tags = new Mandrill_TagsTest($this);
    $this->templates = new Mandrill_TemplatesTest($this);
    $this->urls = new Mandrill_UrlsTest($this);
    $this->users = new Mandrill_UsersTest($this);
  }
  public function getErrorResponse($code, $name, $message) {
    $response = array(
      'status' => 'error',
      'code' => $code,
      'name' => $name,
      'message' => $message,
    );
    return $response;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DrupalMandrill::$timeout protected property
DrupalMandrill::$userAgent protected property
DrupalMandrill::call public function Override call method to user Drupal's HTTP handling.
DrupalMandrill::__destruct public function Override _destruct() to prevent calling curl_close().
DrupalMandrillTest::getErrorResponse public function
DrupalMandrillTest::__construct public function Overrides DrupalMandrill::__construct