Skip to content

Commit

Permalink
#21458: Fixed static tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko committed Feb 28, 2019
1 parent d49a776 commit 03f3a4a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class TestConnection extends \Magento\AdvancedSearch\Block\Adminhtml\System\Config\TestConnection
{
/**
* {@inheritdoc}
* @inheritdoc
*/
protected function _getFieldMapping()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
namespace Magento\Elasticsearch6\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver;

use Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\AttributeAdapter;
use Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\DefaultResolver as Base;

/**
* Default name resolver.
*/
class DefaultResolver extends \Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\DefaultResolver
class DefaultResolver extends Base
{
/**
* Get field name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ private function getSuggestions(QueryInterface $query)
}
ksort($suggestions);
$texts = array_unique(array_column($suggestions, 'text'));
$suggestions = array_slice(array_intersect_key(array_values($suggestions), $texts), 0, $searchSuggestionsCount);
$suggestions = array_slice(
array_intersect_key(array_values($suggestions), $texts),
0,
$searchSuggestionsCount
);
}

return $suggestions;
Expand Down Expand Up @@ -186,7 +190,7 @@ private function initQuery($query)
* Build Suggest on searchable fields.
*
* @param array $searchQuery
* @param int $searchSuggestionsCount
* @param int $searchSuggestionsCount
*
* @return array
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,4 @@ Magento/InventoryGroupedProductIndexer/Indexer
Magento/Customer/Model/FileUploaderDataResolver.php
Magento/Customer/Model/Customer/DataProvider.php
Magento/InventoryShippingAdminUi/Ui/DataProvider
Magento/Elasticsearch/Model/Client/Elasticsearch.php

0 comments on commit 03f3a4a

Please sign in to comment.