Fix rendering issues in form blocks
[MAILPOET-3415]
This commit is contained in:
committed by
Veljko V
parent
6e911ffd1d
commit
c1aef842d2
@@ -7,6 +7,7 @@ use MailPoet\Form\Block\Text;
|
||||
use MailPoet\Form\BlockStylesRenderer;
|
||||
use MailPoet\Form\BlockWrapperRenderer;
|
||||
use MailPoet\Test\Form\HtmlParser;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
|
||||
require_once __DIR__ . '/../HtmlParser.php';
|
||||
@@ -47,7 +48,9 @@ class TextTest extends \MailPoetUnitTest {
|
||||
$this->stylesRendererMock = $this->createMock(BlockStylesRenderer::class);
|
||||
$this->wrapperMock = $this->createMock(BlockWrapperRenderer::class);
|
||||
$this->wrapperMock->method('render')->will($this->returnArgument(1));
|
||||
$this->text = new Text($this->rendererHelperMock, $this->stylesRendererMock, $this->wrapperMock);
|
||||
$wpMock = $this->createMock(WPFunctions::class);
|
||||
$wpMock->method('escAttr')->will($this->returnArgument(0));
|
||||
$this->text = new Text($this->rendererHelperMock, $this->stylesRendererMock, $this->wrapperMock, $wpMock);
|
||||
$this->htmlParser = new HtmlParser();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user