public function testSetTemplateId() { $email = new Email(); $email->setTemplateId('123-456'); $filter = array('templates' => array('settings' => array('enabled' => 1, 'template_id' => '123-456'))); $this->assertEquals($email->getSmtpapi()->getFilters(), $filter); }