public function MandrillTestCase::testGetTemplates in Mandrill 7.2
Gets getting a list of templates for a given label.
File
- tests/
mandrill.test, line 109 - Test class and methods for the Mandrill module.
Class
- MandrillTestCase
- @file Test class and methods for the Mandrill module.
Code
public function testGetTemplates() {
$templates = mandrill_get_templates();
$this
->assertTrue(!empty($templates), 'Tested retrieving templates.');
if (!empty($templates) && is_array($templates)) {
foreach ($templates as $template) {
$this
->assertTrue(!empty($template['name']), 'Tested valid template: ' . $template['name']);
}
}
}