Skip to content

Commit 8e83723

Browse files
committed
AC-15047::[CE] PHPUnit 12: Upgrade Media & Asset Management related test cases | Review Fix
1 parent dab03c3 commit 8e83723

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Exception;
1414
use Magento\AdvancedSearch\Model\Client\ClientInterface as ElasticsearchClient;
1515
use Magento\AdvancedSearch\Model\Client\ClientOptionsInterface;
16+
use Magento\Elasticsearch7\Model\Client\Elasticsearch;
1617
use Magento\Catalog\Api\ProductAttributeRepositoryInterface;
1718
use Magento\Eav\Model\Entity\Attribute\AbstractAttribute;
1819
use Magento\Elasticsearch\Model\Adapter\BatchDataMapperInterface;
@@ -76,7 +77,7 @@ class ElasticsearchTest extends TestCase
7677
protected $logger;
7778

7879
/**
79-
* @var ElasticsearchClient|MockObject
80+
* @var Elasticsearch|MockObject
8081
*/
8182
protected $client;
8283

@@ -154,7 +155,7 @@ protected function setUp(): void
154155
$elasticsearchClientMock->expects($this->any())
155156
->method('indices')
156157
->willReturn($indicesMock);
157-
$this->client = $this->createMock(ElasticsearchClient::class);
158+
$this->client = $this->createMock(Elasticsearch::class);
158159
$this->connectionManager->expects($this->any())
159160
->method('getConnection')
160161
->willReturn($this->client);

0 commit comments

Comments
 (0)