You are here

protected function MandrillTestAPI::getTestTemplatesData in Mandrill 8

Gets an array of templates used in tests.

1 call to MandrillTestAPI::getTestTemplatesData()
MandrillTestAPI::getTemplates in src/MandrillTestAPI.php
Gets a list of mandrill template objects.

File

src/MandrillTestAPI.php, line 289

Class

MandrillTestAPI
Overrides functions in the Mandrill API service for testing.

Namespace

Drupal\mandrill

Code

protected function getTestTemplatesData() {
  $templates = array();
  $template = array(
    'slug' => 'test-template',
    'name' => 'Test Template',
    'labels' => array(
      'test-label',
    ),
    'code' => '<div>editable content</div>',
    'subject' => 'Test Subject',
    'from_email' => 'admin@example.com',
    'from_name' => 'Admin',
    'text' => 'Test text',
    'publish_name' => 'Test Template',
    'publish_code' => '<div>different than draft content</div>',
    'publish_subject' => 'Test Publish Subject',
    'publish_from_email' => 'admin@example.com',
    'publish_from_name' => 'Test Publish Name',
    'publish_text' => 'Test publish text',
    'published_at' => '2013-01-01 15:30:40',
    'created_at' => '2013-01-01 15:30:27',
    'updated_at' => '2013-01-01 15:30:49',
  );
  $templates[] = $template;
  return $templates;
}