Skip to content

Commit 0ead249

Browse files
committed
MAGETWO-65402: [Backport] - [Performance] Optimize validation of swatches attributes - for 2.1.6
1 parent 0e25ea2 commit 0ead249

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dev/tests/integration/testsuite/Magento/Swatches/_files/swatch_attribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ function ($values, $index) use ($optionsPerAttribute) {
6868
$attribute = $objectManager->create(
6969
\Magento\Catalog\Api\Data\ProductAttributeInterface::class,
7070
['data' => $data]
71-
);
71+
);
7272
$attribute->setOptions($options);
7373
$attribute->save();

dev/tests/integration/testsuite/Magento/Swatches/_files/swatch_attribute_rollback.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?php
2+
/**
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
26
/** @var \Magento\Framework\Registry $registry */
37
$registry = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(\Magento\Framework\Registry::class);
48

0 commit comments

Comments
 (0)