Skip to content

Commit 13477dd

Browse files
author
Igor Melnikov
committed
MAGETWO-50549: Create Hydrator that allows convert data interface to array and array to data interface
Fixing tests
1 parent aef7ffe commit 13477dd

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

app/code/Magento/ConfigurableProduct/Test/Unit/Block/Plugin/Product/Media/GalleryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function setUp()
6060
$variationProduct->expects($this->any())->method('getImage')->willReturn('image.jpg');
6161
$variationProduct->expects($this->any())->method('getData')->with('configurable_attribute')->willReturn(1);
6262

63-
$this->galleryHandler->expects($this->once())->method('execute')->with('', $variationProduct);
63+
$this->galleryHandler->expects($this->once())->method('execute')->with($variationProduct);
6464

6565
$configurableType = $this->getMockBuilder('\Magento\ConfigurableProduct\Model\Product\Type\Configurable')
6666
->disableOriginalConstructor()

lib/internal/Magento/Framework/EntityManager/Test/Unit/TypeResolverTest.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function setUp()
2525

2626
/**
2727
* @param object $dataObject
28-
* @param string[] $interfaceNames
28+
* @param string $interfaceNames
2929
* @dataProvider resolveDataProvider
3030
*/
3131
public function testResolve($dataObject, $interfaceName)
@@ -46,15 +46,7 @@ public function resolveDataProvider()
4646
],
4747
[
4848
\Magento\Catalog\Model\Category::class,
49-
\Magento\Catalog\Api\Data\CategoryTreeInterface::class,
50-
],
51-
[
52-
\Magento\SalesRule\Model\Rule::class,
53-
\Magento\SalesRule\Api\Data\RuleInterface::class,
54-
],
55-
[
56-
\Magento\SalesRule\Model\Rule\Interceptor::class,
57-
\Magento\SalesRule\Api\Data\RuleInterface::class,
49+
\Magento\Catalog\Api\Data\CategoryInterface::class,
5850
]
5951
];
6052
}

0 commit comments

Comments
 (0)