Skip to content

Commit c630131

Browse files
committed
Remove Zend_Json from the unit test in the CustomerImportExport module
1 parent 8844ce3 commit c630131

File tree

1 file changed

+4
-4
lines changed
  • app/code/Magento/CustomerImportExport/Test/Unit/Model/ResourceModel/Import/CustomerComposite

1 file changed

+4
-4
lines changed

app/code/Magento/CustomerImportExport/Test/Unit/Model/ResourceModel/Import/CustomerComposite/DataTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testGetNextBunch($entityType, $bunchData, $expectedData)
105105
->getMock();
106106
$jsonDecoderMock->expects($this->once())
107107
->method('decode')
108-
->willReturn(\Zend_Json::decode($bunchData));
108+
->willReturn(json_decode($bunchData, true));
109109
$jsonHelper = $helper->getObject(
110110
\Magento\Framework\Json\Helper\Data::class,
111111
[
@@ -140,7 +140,7 @@ public function getNextBunchDataProvider()
140140
return [
141141
'address entity' => [
142142
'$entityType' => CustomerComposite::COMPONENT_ENTITY_ADDRESS,
143-
'$bunchData' => \Zend_Json::encode(
143+
'$bunchData' => json_encode(
144144
[
145145
[
146146
'_scope' => CustomerComposite::SCOPE_DEFAULT,
@@ -170,7 +170,7 @@ public function getNextBunchDataProvider()
170170
],
171171
'customer entity default scope' => [
172172
'$entityType' => CustomerComposite::COMPONENT_ENTITY_CUSTOMER,
173-
'$bunchData' => \Zend_Json::encode(
173+
'$bunchData' => json_encode(
174174
[
175175
[
176176
'_scope' => CustomerComposite::SCOPE_DEFAULT,
@@ -202,7 +202,7 @@ public function getNextBunchDataProvider()
202202
],
203203
'customer entity address scope' => [
204204
'$entityType' => CustomerComposite::COMPONENT_ENTITY_CUSTOMER,
205-
'$bunchData' => \Zend_Json::encode(
205+
'$bunchData' => json_encode(
206206
[
207207
[
208208
'_scope' => CustomerComposite::SCOPE_ADDRESS,

0 commit comments

Comments
 (0)