Skip to content

Commit 7b5d42a

Browse files
committed
MAGETWO-64085: Static versioning and styles minification break email fonts styles #8241
- fix unit test
1 parent d88aeeb commit 7b5d42a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/code/Magento/Email/Test/Unit/Model/Template/FilterTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ class FilterTest extends \PHPUnit\Framework\TestCase
8787
*/
8888
private $emogrifier;
8989

90+
/**
91+
* @var \Magento\Framework\Css\PreProcessor\Adapter\CssInliner
92+
*/
93+
private $cssInliner;
94+
95+
9096
protected function setUp()
9197
{
9298
$this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
@@ -140,6 +146,10 @@ protected function setUp()
140146
$this->configVariables = $this->getMockBuilder(\Magento\Email\Model\Source\Variables::class)
141147
->disableOriginalConstructor()
142148
->getMock();
149+
150+
$this->cssInliner = $this->objectManager->getObject(
151+
\Magento\Framework\Css\PreProcessor\Adapter\CssInliner::class
152+
);
143153
}
144154

145155
/**
@@ -164,6 +174,7 @@ protected function getModel($mockedMethods = null)
164174
$this->emogrifier,
165175
$this->configVariables,
166176
[],
177+
$this->cssInliner,
167178
])
168179
->setMethods($mockedMethods)
169180
->getMock();

0 commit comments

Comments
 (0)