File tree 1 file changed +11
-0
lines changed
app/code/Magento/Email/Test/Unit/Model/Template 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,12 @@ class FilterTest extends \PHPUnit\Framework\TestCase
87
87
*/
88
88
private $ emogrifier ;
89
89
90
+ /**
91
+ * @var \Magento\Framework\Css\PreProcessor\Adapter\CssInliner
92
+ */
93
+ private $ cssInliner ;
94
+
95
+
90
96
protected function setUp ()
91
97
{
92
98
$ this ->objectManager = new \Magento \Framework \TestFramework \Unit \Helper \ObjectManager ($ this );
@@ -140,6 +146,10 @@ protected function setUp()
140
146
$ this ->configVariables = $ this ->getMockBuilder (\Magento \Email \Model \Source \Variables::class)
141
147
->disableOriginalConstructor ()
142
148
->getMock ();
149
+
150
+ $ this ->cssInliner = $ this ->objectManager ->getObject (
151
+ \Magento \Framework \Css \PreProcessor \Adapter \CssInliner::class
152
+ );
143
153
}
144
154
145
155
/**
@@ -164,6 +174,7 @@ protected function getModel($mockedMethods = null)
164
174
$ this ->emogrifier ,
165
175
$ this ->configVariables ,
166
176
[],
177
+ $ this ->cssInliner ,
167
178
])
168
179
->setMethods ($ mockedMethods )
169
180
->getMock ();
You can’t perform that action at this time.
0 commit comments