Use DI in block renderer

[MAILPOET-2899]
This commit is contained in:
Pavel Dohnal
2020-05-25 13:51:37 +02:00
committed by Veljko V
parent 7561730407
commit 5f73f9ee3e
5 changed files with 32 additions and 31 deletions

View File

@@ -17,7 +17,7 @@ class PreprocessorTest extends \MailPoetUnitTest {
],
]);
$preprocessor = new Preprocessor($renderer, $transactionalEmails);
expect($preprocessor->processBlock(['type' => 'woocommerceHeading']))->equals([[
expect($preprocessor->processBlock([], ['type' => 'woocommerceHeading']))->equals([[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
@@ -42,7 +42,7 @@ class PreprocessorTest extends \MailPoetUnitTest {
public function testProcessWooCommerceContentBlock() {
$renderer = Stub::make(Renderer::class);
$preprocessor = new Preprocessor($renderer, Stub::make(TransactionalEmails::class));
expect($preprocessor->processBlock(['type' => 'woocommerceContent']))->equals([[
expect($preprocessor->processBlock([], ['type' => 'woocommerceContent']))->equals([[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [