Remove phpstan errors from integration Cron tests

[MAILPOET-3235]
This commit is contained in:
Jan Lysý
2021-01-13 17:33:06 +01:00
committed by Veljko V
parent bcb62403a1
commit c9004553c3
11 changed files with 68 additions and 5 deletions

View File

@ -7,6 +7,7 @@ use MailPoet\Models\Newsletter;
use MailPoet\Models\SendingQueue;
use MailPoet\Models\Subscriber;
use MailPoetVendor\Idiorm\ORM;
use WP_Post;
class ShortcodesTest extends \MailPoetTest {
public $wPPost;
@ -42,6 +43,7 @@ class ShortcodesTest extends \MailPoetTest {
public function testItCanReplaceShortcodesInOneStringUsingContentsFromAnother() {
$wpPost = get_post($this->wPPost);
assert($wpPost instanceof WP_Post);
$content = 'Subject line with one shortcode: [newsletter:post_title]';
$contentSource = '<a data-post-id="' . $this->wPPost . '" href="#">latest post</a>';