Specify types for mocks [MAILPOET-2488]

This commit is contained in:
wxa
2019-12-25 14:10:48 +03:00
committed by amine-mp
parent dec7bc24a5
commit 176aba69fe
12 changed files with 35 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ namespace MailPoet\Test\Newsletter\Editor;
use Codeception\Stub\Expected;
use MailPoet\Newsletter\Editor\PostTransformer;
use MailPoet\Newsletter\Editor\PostTransformerContentsExtractor;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
class PostContentTransformerTest extends \MailPoetTest {
/** @var array */
@@ -242,6 +243,7 @@ class PostContentTransformerTest extends \MailPoetTest {
$post = [];
$expected_with_post_class = true;
/** @var MockObject $extractor */
$extractor = $this->make(
PostTransformerContentsExtractor::class,
[
@@ -272,6 +274,7 @@ class PostContentTransformerTest extends \MailPoetTest {
$post = [];
$expected_with_post_class = false;
/** @var MockObject $extractor */
$extractor = $this->make(
PostTransformerContentsExtractor::class,
[