Fix rendering issues in form blocks
[MAILPOET-3415]
This commit is contained in:
committed by
Veljko V
parent
6e911ffd1d
commit
c1aef842d2
@@ -3,6 +3,7 @@
|
||||
namespace MailPoet\Test\Form;
|
||||
|
||||
use MailPoet\Form\BlockStylesRenderer;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
require_once __DIR__ . '/HtmlParser.php';
|
||||
|
||||
@@ -12,7 +13,9 @@ class BlockStylesRendererTest extends \MailPoetUnitTest {
|
||||
|
||||
public function _before() {
|
||||
parent::_before();
|
||||
$this->renderer = new BlockStylesRenderer();
|
||||
$wpMock = $this->createMock(WPFunctions::class);
|
||||
$wpMock->method('escAttr')->will($this->returnArgument(0));
|
||||
$this->renderer = new BlockStylesRenderer($wpMock);
|
||||
}
|
||||
|
||||
public function testItShouldReturnEmptyStringForNoStylesOrUnsupportedStyles() {
|
||||
|
Reference in New Issue
Block a user