From 7b5d42a0516721ec158e9ec20e28738844b159b5 Mon Sep 17 00:00:00 2001 From: Cristian Partica Date: Tue, 29 Aug 2017 10:07:25 -0500 Subject: [PATCH] MAGETWO-64085: Static versioning and styles minification break email fonts styles #8241 - fix unit test --- .../Email/Test/Unit/Model/Template/FilterTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/code/Magento/Email/Test/Unit/Model/Template/FilterTest.php b/app/code/Magento/Email/Test/Unit/Model/Template/FilterTest.php index 5eaa65b495133..039f79c588884 100644 --- a/app/code/Magento/Email/Test/Unit/Model/Template/FilterTest.php +++ b/app/code/Magento/Email/Test/Unit/Model/Template/FilterTest.php @@ -87,6 +87,12 @@ class FilterTest extends \PHPUnit\Framework\TestCase */ private $emogrifier; + /** + * @var \Magento\Framework\Css\PreProcessor\Adapter\CssInliner + */ + private $cssInliner; + + protected function setUp() { $this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this); @@ -140,6 +146,10 @@ protected function setUp() $this->configVariables = $this->getMockBuilder(\Magento\Email\Model\Source\Variables::class) ->disableOriginalConstructor() ->getMock(); + + $this->cssInliner = $this->objectManager->getObject( + \Magento\Framework\Css\PreProcessor\Adapter\CssInliner::class + ); } /** @@ -164,6 +174,7 @@ protected function getModel($mockedMethods = null) $this->emogrifier, $this->configVariables, [], + $this->cssInliner, ]) ->setMethods($mockedMethods) ->getMock();