File tree Expand file tree Collapse file tree 2 files changed +31
-32
lines changed
app/code/Magento/Elasticsearch8 Expand file tree Collapse file tree 2 files changed +31
-32
lines changed Original file line number Diff line number Diff line change 19
19
* Elasticsearch client
20
20
* @deprecated Elasticsearch8 is no longer supported by Adobe
21
21
* @see this class will be responsible for ES8 only
22
- * phpstan:ignore "File has calls static method. (phpStaticMethodCalls)"
23
22
*/
24
23
class Elasticsearch implements ClientInterface
25
24
{
@@ -80,7 +79,7 @@ public function __construct(
80
79
$ this ->clientOptions = $ options ;
81
80
$ this ->fieldsMappingPreprocessors = $ fieldsMappingPreprocessors ;
82
81
$ this ->dynamicTemplatesProvider = $ dynamicTemplatesProvider ?: ObjectManager::getInstance ()
83
- ->get (DynamicTemplatesProvider::class); /** @phpstan-ignore-line */
82
+ ->get (DynamicTemplatesProvider::class);
84
83
}
85
84
86
85
/**
Original file line number Diff line number Diff line change 3
3
* Copyright 2025 Adobe
4
4
* All Rights Reserved.
5
5
*/
6
+
6
7
declare (strict_types=1 );
7
8
8
9
namespace Magento \Elasticsearch8 \Test \Unit \Model \Client ;
27
28
* Class ElasticsearchTest to test Elasticsearch 8
28
29
*
29
30
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
30
- * phpstan:ignore "File has calls static method. (phpStaticMethodCalls)"
31
31
*/
32
32
class ElasticsearchTest extends TestCase
33
33
{
@@ -61,43 +61,43 @@ class ElasticsearchTest extends TestCase
61
61
*/
62
62
protected function setUp (): void
63
63
{
64
- BypassFinals::enable (); /** @phpstan-ignore-line */
64
+ BypassFinals::enable ();
65
65
$ this ->elasticsearchClientMock = $ this ->getMockBuilder (Client::class) /** @phpstan-ignore-line */
66
- ->onlyMethods (
67
- [
68
- 'indices ' ,
69
- 'ping ' ,
70
- 'bulk ' ,
71
- 'search ' ,
72
- 'scroll ' ,
73
- 'info ' ,
74
- ]
75
- )
66
+ ->onlyMethods (
67
+ [
68
+ 'indices ' ,
69
+ 'ping ' ,
70
+ 'bulk ' ,
71
+ 'search ' ,
72
+ 'scroll ' ,
73
+ 'info ' ,
74
+ ]
75
+ )
76
76
->disableOriginalConstructor ()
77
77
->getMock ();
78
78
$ this ->indicesMock = $ this ->getMockBuilder (Indices::class) /** @phpstan-ignore-line */
79
- ->onlyMethods (
80
- [
81
- 'exists ' ,
82
- 'getSettings ' ,
83
- 'create ' ,
84
- 'delete ' ,
85
- 'putMapping ' ,
86
- 'getMapping ' ,
87
- 'stats ' ,
88
- 'updateAliases ' ,
89
- 'existsAlias ' ,
90
- 'getAlias ' ,
91
- ]
92
- )
79
+ ->onlyMethods (
80
+ [
81
+ 'exists ' ,
82
+ 'getSettings ' ,
83
+ 'create ' ,
84
+ 'delete ' ,
85
+ 'putMapping ' ,
86
+ 'getMapping ' ,
87
+ 'stats ' ,
88
+ 'updateAliases ' ,
89
+ 'existsAlias ' ,
90
+ 'getAlias ' ,
91
+ ]
92
+ )
93
93
->addMethods (['deleteMapping ' ])
94
94
->disableOriginalConstructor ()
95
95
->getMock ();
96
96
$ this ->elasticsearchResponse = $ this ->getMockBuilder (ElasticsearchResponse::class) /** @phpstan-ignore-line */
97
- ->onlyMethods ([
98
- 'asBool ' ,
99
- 'asArray ' ,
100
- ])
97
+ ->onlyMethods ([
98
+ 'asBool ' ,
99
+ 'asArray ' ,
100
+ ])
101
101
->getMock ();
102
102
$ this ->elasticsearchClientMock ->expects ($ this ->any ())
103
103
->method ('indices ' )
You can’t perform that action at this time.
0 commit comments