Skip to content

Commit 0e25ea2

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

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/code/Magento/Swatches/Test/Unit/Model/SwatchAttributesProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SwatchAttributesProviderTest extends \PHPUnit_Framework_TestCase
1616
/**
1717
* @var SwatchAttributesProvider
1818
*/
19-
private $swatchAttributesProvider;
19+
protected $swatchAttributesProvider;
2020

2121
/**
2222
* @var Configurable

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

Lines changed: 6 additions & 2 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
use Magento\Eav\Api\Data\AttributeOptionInterface;
37

48
/** @var \Magento\Framework\ObjectManagerInterface $objectManager */
@@ -63,7 +67,7 @@ function ($values, $index) use ($optionsPerAttribute) {
6367

6468
$attribute = $objectManager->create(
6569
\Magento\Catalog\Api\Data\ProductAttributeInterface::class,
66-
['data' => $data])
67-
;
70+
['data' => $data]
71+
);
6872
$attribute->setOptions($options);
6973
$attribute->save();

0 commit comments

Comments
 (0)