Skip to content

Commit c2426f7

Browse files
committed
MAGETWO-69501: Swatch-color was not replaced by image
1 parent d4b2c50 commit c2426f7

File tree

1 file changed

+8
-3
lines changed
  • dev/tests/integration/testsuite/Magento/Swatches/Helper

1 file changed

+8
-3
lines changed

dev/tests/integration/testsuite/Magento/Swatches/Helper/DataTest.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Magento\Swatches\Helper;
88

9-
// @codingStandardsIgnoreStart
109
use Magento\Catalog\Api\Data\ProductAttributeInterface;
1110
use Magento\Catalog\Api\ProductRepositoryInterface;
1211
use Magento\Catalog\Model\Category;
@@ -31,8 +30,12 @@
3130
use Magento\Framework\Registry;
3231
use Magento\TestFramework\TestCase\AbstractController;
3332
use Magento\TestFramework\Helper\Bootstrap;
34-
// @codingStandardsIgnoreEnd
3533

34+
/**
35+
* class DataTest
36+
*
37+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
38+
*/
3639
class DataTest extends AbstractController
3740
{
3841

@@ -159,7 +162,9 @@ private static function productFixture()
159162
->setPrice(10)
160163
->setVisibility(Visibility::VISIBILITY_NOT_VISIBLE)
161164
->setStatus(Status::STATUS_ENABLED)
162-
->setStockData(['use_config_manage_stock' => 1, 'qty' => 100, 'is_qty_decimal' => 0, 'is_in_stock' => 1]);
165+
->setStockData(
166+
['use_config_manage_stock' => 1, 'qty' => 100, 'is_qty_decimal' => 0, 'is_in_stock' => 1]
167+
);
163168
$product->setData($attribute->getAttributeCode(), $option->getValue());
164169
$product = $productRepository->save($product);
165170
// simple products must be in stock

0 commit comments

Comments
 (0)