File tree Expand file tree Collapse file tree 5 files changed +7
-6
lines changed
Elasticsearch7/Test/Unit/Model/DataProvider/Base
dev/tests/integration/testsuite/Magento/Elasticsearch7/SearchAdapter Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1212 "magento/module-store" : " *" ,
1313 "magento/module-catalog-inventory" : " *" ,
1414 "magento/framework" : " *" ,
15- "elasticsearch/elasticsearch" : " ^ 7.17 || ^ 8.5"
15+ "elasticsearch/elasticsearch" : " ~ 7.17.0 || ~ 8.5.0 "
1616 },
1717 "suggest" : {
1818 "magento/module-config" : " *"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 99 "config" : {
1010 "allow-plugins" : {
1111 "dealerdirect/phpcodesniffer-composer-installer" : true ,
12- "magento/*" : true
12+ "magento/*" : true ,
13+ "php-http/discovery" : true
1314 },
1415 "preferred-install" : " dist" ,
1516 "sort-packages" : true
3839 "colinmollenhour/credis" : " ^1.13" ,
3940 "colinmollenhour/php-redis-session-abstract" : " ^1.5" ,
4041 "composer/composer" : " ^2.0, !=2.2.16" ,
41- "elasticsearch/elasticsearch" : " ^ 7.17||^ 8.5" ,
42+ "elasticsearch/elasticsearch" : " ~ 7.17.0 || ~ 8.5.0 " ,
4243 "ezyang/htmlpurifier" : " ^4.16" ,
4344 "guzzlehttp/guzzle" : " ^7.5" ,
4445 "laminas/laminas-captcha" : " ^2.12" ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments