Create renderer for form headers

[MAILPOET-2613]
This commit is contained in:
Pavel Dohnal
2020-03-11 08:45:36 +01:00
committed by Veljko V
parent 0c796e7a7d
commit 1b05ea2e68
4 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace MailPoet\Test\Form\Block;
use MailPoet\Form\Block\Heading;
class HeadingTest extends \MailPoetUnitTest {
/** @var Heading */
private $heading;
public function _before() {
parent::_before();
$this->heading = new Heading();
}
public function testItShouldRenderHeading() {
$html = $this->heading->render([], []);
expect($html)->startsWith('<h2');
}
}