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
111
111
*/
112
112
protected function setUp (): void
113
113
{
114
- if (!class_exists (\Elasticsearch \Client ::class)) {
114
+ if (!class_exists (\Elasticsearch \ClientBuilder ::class)) { /** @phpstan-ignore-line */
115
115
$ this ->markTestSkipped ('AC-6597: Skipped as Elasticsearch 8 is configured ' );
116
116
}
117
117
Original file line number Diff line number Diff line change 12
12
"magento/module-store" : " *" ,
13
13
"magento/module-catalog-inventory" : " *" ,
14
14
"magento/framework" : " *" ,
15
- "elasticsearch/elasticsearch" : " ^ 7.17 || ^ 8.5"
15
+ "elasticsearch/elasticsearch" : " ~ 7.17.0 || ~ 8.5.0 "
16
16
},
17
17
"suggest" : {
18
18
"magento/module-config" : " *"
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ public function testGetItemsWithEnabledSearchSuggestion(): void
226
226
*/
227
227
public function testGetItemsException (): void
228
228
{
229
- if (!class_exists (\Elasticsearch \Client ::class)) {
229
+ if (!class_exists (\Elasticsearch \ClientBuilder ::class)) { /** @phpstan-ignore-line */
230
230
$ this ->markTestSkipped ('AC-6597: Skipped as Elasticsearch 8 is configured ' );
231
231
}
232
232
Original file line number Diff line number Diff line change 9
9
"config" : {
10
10
"allow-plugins" : {
11
11
"dealerdirect/phpcodesniffer-composer-installer" : true ,
12
- "magento/*" : true
12
+ "magento/*" : true ,
13
+ "php-http/discovery" : true
13
14
},
14
15
"preferred-install" : " dist" ,
15
16
"sort-packages" : true
38
39
"colinmollenhour/credis" : " ^1.13" ,
39
40
"colinmollenhour/php-redis-session-abstract" : " ^1.5" ,
40
41
"composer/composer" : " ^2.0, !=2.2.16" ,
41
- "elasticsearch/elasticsearch" : " ^ 7.17||^ 8.5" ,
42
+ "elasticsearch/elasticsearch" : " ~ 7.17.0 || ~ 8.5.0 " ,
42
43
"ezyang/htmlpurifier" : " ^4.16" ,
43
44
"guzzlehttp/guzzle" : " ^7.5" ,
44
45
"laminas/laminas-captcha" : " ^2.12" ,
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ protected function setUp(): void
43
43
*/
44
44
public function testCorrectElasticsearchClientEs7 ()
45
45
{
46
- if (!class_exists (\Elasticsearch \Client ::class)) {
46
+ if (!class_exists (\Elasticsearch \ClientBuilder ::class)) { /** @phpstan-ignore-line */
47
47
$ this ->markTestSkipped ('AC-6597: Skipped as Elasticsearch 8 is configured ' );
48
48
}
49
49
You can’t perform that action at this time.
0 commit comments