Skip to content

Commit 261f2ae

Browse files
author
okarpenko
committed
MAGETWO-40863: Stabilization Customer Search
1 parent 5c458ce commit 261f2ae

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/code/Magento/Customer/Model/Plugin/Grid/CustomAttribute.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public function __construct(
2525
$this->attributeRepository = $attributeRepository;
2626
}
2727

28+
/**
29+
* @return AttributeMetadataInterface[]
30+
*/
2831
public function getCustomAttributesWithOptions()
2932
{
3033
$attributes = [];
@@ -36,6 +39,11 @@ public function getCustomAttributesWithOptions()
3639
return $attributes;
3740
}
3841

42+
/**
43+
* @param AttributeMetadataInterface $attribute
44+
* @param $optionId
45+
* @return string
46+
*/
3947
protected function getAttributeOptionLabelById(AttributeMetadataInterface $attribute, $optionId)
4048
{
4149
$optionLabel = '';

app/code/Magento/Indexer/Test/Unit/Model/Handler/AttributeHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright © 2015 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
namespace Magento\Indexer\Model\Handler;
6+
namespace Magento\Indexer\Test\Unit\Model\Handler;
77

88
use Magento\Customer\Model\Resource\Customer\Collection;
99

0 commit comments

Comments
 (0)