Update ContentRenderer:testItInlinesContentStyles test
This new inliner library adds a space between the rule and value [MAILPOET-6014]
This commit is contained in:
committed by
Mike Jolley
parent
76c60aa5e0
commit
e6aef6f0a5
@@ -40,8 +40,8 @@ class ContentRendererTest extends \MailPoetTest {
|
|||||||
$template->content = '<!-- wp:mailpoet/email-content /-->';
|
$template->content = '<!-- wp:mailpoet/email-content /-->';
|
||||||
$rendered = $this->renderer->render($this->emailPost, $template);
|
$rendered = $this->renderer->render($this->emailPost, $template);
|
||||||
$paragraphStyles = $this->getStylesValueForTag($rendered, 'p');
|
$paragraphStyles = $this->getStylesValueForTag($rendered, 'p');
|
||||||
verify($paragraphStyles)->stringContainsString('margin:0');
|
verify($paragraphStyles)->stringContainsString('margin: 0');
|
||||||
verify($paragraphStyles)->stringContainsString('display:block');
|
verify($paragraphStyles)->stringContainsString('display: block');
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getStylesValueForTag($html, $tag): ?string {
|
private function getStylesValueForTag($html, $tag): ?string {
|
||||||
|
Reference in New Issue
Block a user