Skip to content

Commit 2cd9353

Browse files
author
Alex Paliarush
committed
MAGETWO-69717: Custom option value IDs changed after import
1 parent 06691e1 commit 2cd9353

File tree

1 file changed

+5
-12
lines changed
  • app/code/Magento/CatalogImportExport/Test/Unit/Model/Import/Product/Type

1 file changed

+5
-12
lines changed

app/code/Magento/CatalogImportExport/Test/Unit/Model/Import/Product/Type/OptionTest.php

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -251,22 +251,15 @@ protected function setUp()
251251
$entityMetadataMock->expects($this->any())
252252
->method('getLinkField')
253253
->willReturn('entity_id');
254-
$optionValueCollectionFactoryMock = $this->getMock(
255-
\Magento\Catalog\Model\ResourceModel\Product\Option\Value\CollectionFactory::class,
256-
[],
257-
[],
258-
'',
259-
false
254+
$optionValueCollectionFactoryMock = $this->createMock(
255+
\Magento\Catalog\Model\ResourceModel\Product\Option\Value\CollectionFactory::class
260256
);
261-
$optionValueCollectionMock = $this->getMock(
257+
$optionValueCollectionMock = $this->createPartialMock(
262258
\Magento\Catalog\Model\ResourceModel\Product\Option\Value\Collection::class,
263-
['getIterator', 'addTitleToResult'],
264-
[],
265-
'',
266-
false
259+
['getIterator', 'addTitleToResult']
267260
);
268261
$optionValueCollectionMock->expects($this->any())->method('getIterator')
269-
->willReturn($this->getMock(\Traversable::class, [], [], '', false));
262+
->willReturn($this->createMock(\Traversable::class));
270263
$optionValueCollectionFactoryMock->expects($this->any())
271264
->method('create')->willReturn($optionValueCollectionMock);
272265
$modelClassArgs = [

0 commit comments

Comments
 (0)