Skip to content

Commit b93b095

Browse files
author
Gurzhyi, Andrii
committed
MAGETWO-48227: Fix API/Integration tests
- Fixed tests
1 parent 056a02a commit b93b095

File tree

2 files changed

+140
-160
lines changed

2 files changed

+140
-160
lines changed

app/code/Magento/ConfigurableProduct/Model/OptionRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function getList($sku)
134134
{
135135
$product = $this->getProduct($sku);
136136

137-
return $this->optionLoader->load($product);
137+
return (array) $this->optionLoader->load($product);
138138
}
139139

140140
/**
@@ -149,7 +149,7 @@ public function delete(OptionInterface $option)
149149
$this->configurableTypeResource->saveProducts($product, []);
150150
} catch (\Exception $exception) {
151151
throw new StateException(
152-
__('Cannot delete variations from product: %1', $option->getProductId())
152+
__('Cannot delete variations from product: %1', $entityId)
153153
);
154154
}
155155
try {

0 commit comments

Comments
 (0)