Пример #1
0
 /**
  * Manually set a theme that will be used by getParams
  *
  * Used to force the loading of an email template from a specific theme
  *
  * @param string $templateId
  * @param string $theme
  * @return $this
  */
 public function setForcedTheme($templateId, $theme)
 {
     $area = $this->emailConfig->getTemplateArea($templateId);
     $this->design->setDesignTheme($theme, $area);
     return $this;
 }
Пример #2
0
 public function testGetTemplateArea()
 {
     $this->assertEquals('frontend', $this->model->getTemplateArea('template_one'));
 }