public function testModel()
 {
     /* @var MailRenderedInterface $mailRendered */
     $mailRendered = $this->getMockBuilder(MailRenderedInterface::class)->getMock();
     $event = new FilterPostRenderEvent($mailRendered);
     $this->assertSame($mailRendered, $event->getMailRendered());
 }
 /**
  * Action on post render event of mail templater.
  *
  * @param FilterPostRenderEvent $event The event
  */
 public function onPostRender(FilterPostRenderEvent $event)
 {
     foreach ($this->registry->getTemplateFilters() as $filter) {
         if (null !== ($mailRendered = $event->getMailRendered()) && $filter->supports($mailRendered)) {
             $filter->filter($mailRendered);
         }
     }
 }