Skip to content

Commit f68c8a2

Browse files
committed
MC-31304: [ElasticSearch] Exception on catalog search result page
1 parent f775681 commit f68c8a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/ElasticsearchTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
use Elasticsearch\Namespaces\IndicesNamespace;
1212
use Magento\AdvancedSearch\Model\Client\ClientInterface as ElasticsearchClient;
1313
use Magento\AdvancedSearch\Model\Client\ClientOptionsInterface;
14-
use Magento\Catalog\Api\Data\ProductAttributeInterface;
1514
use Magento\Catalog\Api\ProductAttributeRepositoryInterface;
15+
use Magento\Eav\Model\Entity\Attribute\AbstractAttribute;
1616
use Magento\Elasticsearch\Model\Adapter\BatchDataMapperInterface;
1717
use Magento\Elasticsearch\Model\Adapter\Elasticsearch as ElasticsearchAdapter;
1818
use Magento\Elasticsearch\Model\Adapter\FieldMapperInterface;
@@ -527,7 +527,7 @@ public function testUpdateIndexMappingWithAliasDefinition(): void
527527
->with($storeId, $mappedIndexerId)
528528
->willReturn($indexName);
529529

530-
$attribute = $this->getMockBuilder(ProductAttributeInterface::class)
530+
$attribute = $this->getMockBuilder(AbstractAttribute::class)
531531
->disableOriginalConstructor()
532532
->getMockForAbstractClass();
533533

0 commit comments

Comments
 (0)