Fix issues caused by posts not being saved and CSS inliner change
[MAILPOET-6014]
This commit is contained in:
committed by
Mike Jolley
parent
0bbe31b005
commit
dd93d92a8e
@ -50,8 +50,7 @@ class RendererTest extends \MailPoetTest {
|
|||||||
'settingsController' => $settingsControllerMock,
|
'settingsController' => $settingsControllerMock,
|
||||||
'themeController' => $themeControllerMock,
|
'themeController' => $themeControllerMock,
|
||||||
]);
|
]);
|
||||||
$this->emailPost = new \WP_Post((object)[
|
$this->emailPost = $this->tester->createPost([
|
||||||
'ID' => 1,
|
|
||||||
'post_content' => '<!-- wp:paragraph --><p>Hello!</p><!-- /wp:paragraph -->',
|
'post_content' => '<!-- wp:paragraph --><p>Hello!</p><!-- /wp:paragraph -->',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -95,7 +94,7 @@ class RendererTest extends \MailPoetTest {
|
|||||||
|
|
||||||
// Verify body element styles
|
// Verify body element styles
|
||||||
$style = $this->getStylesValueForTag($rendered['html'], ['tag_name' => 'body']);
|
$style = $this->getStylesValueForTag($rendered['html'], ['tag_name' => 'body']);
|
||||||
verify($style)->stringContainsString('background:#123456');
|
verify($style)->stringContainsString('background-color: #123456');
|
||||||
|
|
||||||
// Verify content wrapper element styles
|
// Verify content wrapper element styles
|
||||||
$style = $this->getStylesValueForTag($rendered['html'], ['tag_name' => 'td', 'class_name' => 'email_content_wrapper']);
|
$style = $this->getStylesValueForTag($rendered['html'], ['tag_name' => 'td', 'class_name' => 'email_content_wrapper']);
|
||||||
|
Reference in New Issue
Block a user