protected function Mandrill_TemplatesTest::getTestTemplatesData in Mandrill 7.2
Gets an array of templates used in tests.
1 call to Mandrill_TemplatesTest::getTestTemplatesData()
- Mandrill_TemplatesTest::getList in tests/
includes/ mandrill_templates_test.inc
File
- tests/
includes/ mandrill_templates_test.inc, line 37 - A virtual Mandrill Templates API implementation for use in testing.
Class
- Mandrill_TemplatesTest
- @file A virtual Mandrill Templates API implementation for use in testing.
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;
}