Skip to content

Commit

Permalink
MAGETWO-64085: Static versioning and styles minification break email …
Browse files Browse the repository at this point in the history
…fonts styles #8241

- fix unit test
  • Loading branch information
cpartica committed Aug 29, 2017
1 parent d88aeeb commit 7b5d42a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/code/Magento/Email/Test/Unit/Model/Template/FilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
);
}

/**
Expand All @@ -164,6 +174,7 @@ protected function getModel($mockedMethods = null)
$this->emogrifier,
$this->configVariables,
[],
$this->cssInliner,
])
->setMethods($mockedMethods)
->getMock();
Expand Down

0 comments on commit 7b5d42a

Please sign in to comment.