diff --git a/tests/unit/Newsletter/Renderer/Blocks/TextTest.php b/tests/unit/Newsletter/Renderer/Blocks/TextTest.php index d20b7c6932..88e6a44568 100644 --- a/tests/unit/Newsletter/Renderer/Blocks/TextTest.php +++ b/tests/unit/Newsletter/Renderer/Blocks/TextTest.php @@ -80,6 +80,28 @@ class TextTest extends \MailPoetUnitTest { expect($blockquoteTable)->equals($expectedResult); } + public function testItShouldRemoveEmptyParagraphs() { + $this->block['text'] = '
Text
Text2
'; + $output = Text::render($this->block); + $expectedResult = ' +
+ Text + |
+
+ Text2 + |
+