Skip to content

Commit a7f676c

Browse files
author
roman
committed
MAGETWO-95386: Fixed incorrect design expretions functional
1 parent e830231 commit a7f676c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/internal/Magento/Framework/View/Test/Unit/DesignExceptionsTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
namespace Magento\Framework\View\Test\Unit;
88

99
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;
10+
use Magento\Framework\Unserialize\Unserialize;
1011

1112
class DesignExceptionsTest extends \PHPUnit_Framework_TestCase
1213
{
@@ -28,18 +29,21 @@ class DesignExceptionsTest extends \PHPUnit_Framework_TestCase
2829
/** @var string */
2930
protected $scopeType = 'scope_type';
3031

32+
private $secureUnserializer;
33+
3134
protected function setUp()
3235
{
3336
$this->scopeConfigMock = $this->getMock('Magento\Framework\App\Config\ScopeConfigInterface');
3437
$this->requestMock = $this->getMock('Magento\Framework\App\Request\Http', [], [], '', false);
35-
3638
$this->objectManagerHelper = new ObjectManagerHelper($this);
39+
$this->secureUnserializer = $this->objectManagerHelper->getObject(Unserialize::class);
3740
$this->designExceptions = $this->objectManagerHelper->getObject(
3841
'Magento\Framework\View\DesignExceptions',
3942
[
4043
'scopeConfig' => $this->scopeConfigMock,
4144
'exceptionConfigPath' => $this->exceptionConfigPath,
42-
'scopeType' => $this->scopeType
45+
'scopeType' => $this->scopeType,
46+
'secureUnserializer' => $this->secureUnserializer,
4347
]
4448
);
4549
}

0 commit comments

Comments
 (0)