public function testSetTemplateOptions() { $templateOptions = ['opt1', 'opt2']; $this->template->setTemplateOptions($templateOptions); $result = $this->template->getTemplateOptions(); $this->assertEquals($templateOptions, $result); }
/** * Configure email template * * @return void */ protected function configureEmailTemplate() { $this->transportBuilder->setTemplateIdentifier($this->templateContainer->getTemplateId()); $this->transportBuilder->setTemplateOptions($this->templateContainer->getTemplateOptions()); $this->transportBuilder->setTemplateVars($this->templateContainer->getTemplateVars()); $this->transportBuilder->setFrom($this->identityContainer->getEmailIdentity()); }