Skip to content

Commit 0e5e33d

Browse files
author
Joan He
committed
MAGETWO-66318: Remove usages of serialize/unserialize in CmsSampleData
- fix build failures
1 parent 43d061b commit 0e5e33d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

app/code/Magento/CatalogWidget/Test/Unit/Block/Product/ProductsListTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,9 @@ protected function setUp()
9797
$this->builder = $this->getMock(\Magento\Rule\Model\Condition\Sql\Builder::class, [], [], '', false);
9898
$this->rule = $this->getMock(\Magento\CatalogWidget\Model\Rule::class, [], [], '', false);
9999
$this->serializer = $this->getMock(\Magento\Framework\Serialize\Serializer\Json::class, [], [], '', false);
100-
$this->widgetConditionsHelper = $this->getMock(
101-
\Magento\Widget\Helper\Conditions::class,
102-
[],
103-
['serializer' => $this->serializer]
104-
);
100+
$this->widgetConditionsHelper = $this->getMockBuilder(\Magento\Widget\Helper\Conditions::class)
101+
->disableOriginalConstructor()
102+
->getMock();
105103
$this->storeManager = $this->getMock(\Magento\Store\Model\StoreManagerInterface::class);
106104
$this->design = $this->getMock(\Magento\Framework\View\DesignInterface::class);
107105

app/code/Magento/Widget/Setup/LayoutUpdateConverter.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ class LayoutUpdateConverter extends SerializedToJson
2121
*/
2222
private $normalizer;
2323

24+
/**
25+
* LayoutUpdateConverter constructor.
26+
*
27+
* @param Serialize $serialize
28+
* @param Json $json
29+
* @param Normalizer $normalizer
30+
*/
2431
public function __construct(
2532
Serialize $serialize,
2633
Json $json,

0 commit comments

Comments
 (0)