Skip to content

Commit e81c28c

Browse files
committed
Revert "Revert "AC-7821:Extract ES8 module to a separate repository - Fixed Unit/Static/Integration test failures""
This reverts commit 60f83cc.
1 parent 60f83cc commit e81c28c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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\Client::class)) {
114+
if (!class_exists(\Elasticsearch\ClientBuilder::class)) { /** @phpstan-ignore-line */
115115
$this->markTestSkipped('AC-6597: Skipped as Elasticsearch 8 is configured');
116116
}
117117

app/code/Magento/Elasticsearch7/Test/Unit/Model/DataProvider/Base/SuggestionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function testGetItemsWithEnabledSearchSuggestion(): void
226226
*/
227227
public function testGetItemsException(): void
228228
{
229-
if (!class_exists(\Elasticsearch\Client::class)) {
229+
if (!class_exists(\Elasticsearch\ClientBuilder::class)) { /** @phpstan-ignore-line */
230230
$this->markTestSkipped('AC-6597: Skipped as Elasticsearch 8 is configured');
231231
}
232232

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function setUp(): void
4343
*/
4444
public function testCorrectElasticsearchClientEs7()
4545
{
46-
if (!class_exists(\Elasticsearch\Client::class)) {
46+
if (!class_exists(\Elasticsearch\ClientBuilder::class)) { /** @phpstan-ignore-line */
4747
$this->markTestSkipped('AC-6597: Skipped as Elasticsearch 8 is configured');
4848
}
4949

0 commit comments

Comments
 (0)