Add ID to emailPost

This commit is contained in:
Mike Jolley
2024-04-08 14:15:24 +01:00
committed by Rostislav Wolný
parent fa73d97ae9
commit 7325785e6b

View File

@@ -16,6 +16,7 @@ class ContentRendererTest extends \MailPoetTest {
$this->diContainer->get(EmailEditor::class)->initialize();
$this->renderer = $this->diContainer->get(ContentRenderer::class);
$this->emailPost = new \WP_Post((object)[
'ID' => 1,
'post_content' => '<!-- wp:paragraph --><p>Hello!</p><!-- /wp:paragraph -->',
]);
}