Skip to content

Commit dcedc69

Browse files
committed
AC-7821::Extract ES8 module to a separate repository
1 parent a58fa80 commit dcedc69

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class ElasticsearchTest extends TestCase
111111
*/
112112
protected function setUp(): void
113113
{
114-
if (!class_exists(\Elasticsearch\ClientBuilder::class)) {
114+
if (!class_exists(\Elasticsearch\Client::class)) {
115115
$this->markTestSkipped('AC-6597: Skipped as Elasticsearch 8 is configured');
116116
}
117117

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@
166166
"magento/module-open-search": "*",
167167
"magento/module-elasticsearch": "*",
168168
"magento/module-elasticsearch-7": "*",
169+
"magento/module-elasticsearch-8": "*",
169170
"magento/module-email": "*",
170171
"magento/module-encryption-key": "*",
171172
"magento/module-fedex": "*",

dev/tests/integration/testsuite/Magento/Elasticsearch7/SearchAdapter/ConnectionManagerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ protected function setUp(): void
4343
*/
4444
public function testCorrectElasticsearchClientEs7()
4545
{
46+
if (!class_exists(\Elasticsearch\Client::class)) {
47+
$this->markTestSkipped('AC-6597: Skipped as Elasticsearch 8 is configured');
48+
}
49+
4650
$connection = $this->connectionManager->getConnection();
4751
$this->assertInstanceOf(Elasticsearch::class, $connection);
4852
}

0 commit comments

Comments
 (0)