Render font family

[MAILPOET-2911]
This commit is contained in:
Pavel Dohnal
2020-06-09 15:56:18 +02:00
committed by Veljko V
parent 7afdc9766f
commit 942e520c56
3 changed files with 20 additions and 2 deletions

View File

@ -97,4 +97,15 @@ class BlockStylesRendererTest extends \MailPoetUnitTest {
'styles' => ['font_color' => 'red'],
], 'input'))->notEquals('');
}
public function testItShouldRenderFontFamily() {
$styles = [];
$settings = [
'font_family' => 'font1',
];
$result = $this->renderer->renderForButton($styles, $settings);
expect($result)->contains("font-family:'font1'");
$result = $this->renderer->renderForButton(['font_family' => 'font2'], $settings);
expect($result)->contains("font-family:'font2'");
}
}