Use DI in block renderer
[MAILPOET-2899]
This commit is contained in:
@@ -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' => [
|
||||
|
Reference in New Issue
Block a user