diff --git a/lib/Newsletter/Renderer/Blocks/Footer.php b/lib/Newsletter/Renderer/Blocks/Footer.php index 11a8aeefbc..1a9923fd6c 100644 --- a/lib/Newsletter/Renderer/Blocks/Footer.php +++ b/lib/Newsletter/Renderer/Blocks/Footer.php @@ -34,8 +34,7 @@ class Footer { $style = EHelper::escapeHtmlStyleAttr($style); $template = '
Footer text. link
', + 'styles' => [ + 'block' => [ + 'backgroundColor' => 'transparent', + ], + 'text' => [ + 'fontColor' => '#222222', + 'fontFamily' => 'Roboto', + 'fontSize' => '12px', + 'textAlign' => 'center', + ], + 'link' => [ + 'fontColor' => '#689f2c', + 'textDecoration' => 'none', + ], + ], + ]; + + function testItRendersCorrectly() { + $output = Footer::render($this->block); + $expected_result = ' +Footer text. link
'; + $output = Footer::render($this->block); + expect($output)->contains('link'); + } +}