Render paragraph and heading typography styles on front end

[MAILPOET-3007]
This commit is contained in:
Rostislav Wolny
2020-06-29 16:17:00 +02:00
committed by Veljko V
parent 6d59143453
commit 2c33cbfa24
4 changed files with 39 additions and 0 deletions

View File

@@ -77,6 +77,16 @@ class ParagraphTest extends \MailPoetUnitTest {
expect($html)->equals('<p class="mailpoet_form_paragraph" style="font-size: 33px">Paragraph</p>');
}
public function testItShouldRenderLineHeight() {
$html = $this->paragraph->render([
'params' => [
'content' => 'Paragraph',
'line_height' => '2.3',
],
]);
expect($html)->equals('<p class="mailpoet_form_paragraph" style="line-height: 2.3">Paragraph</p>');
}
public function testItShouldRenderDropCap() {
$html = $this->paragraph->render([
'params' => [