File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
app/code/Magento/Elasticsearch8 Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -85,12 +85,12 @@ public function __construct(
85
85
*
86
86
* @return Client
87
87
*/
88
- private function getElasticsearchClient (): Client
88
+ private function getElasticsearchClient (): Client /** @phpstan-ignore-line */
89
89
{
90
90
$ pid = getmypid ();
91
91
if (!isset ($ this ->client [$ pid ])) {
92
92
$ config = $ this ->buildESConfig ($ this ->clientOptions );
93
- $ this ->client [$ pid ] = ClientBuilder::fromConfig ($ config , true );
93
+ $ this ->client [$ pid ] = ClientBuilder::fromConfig ($ config , true ); /** @phpstan-ignore-line */
94
94
}
95
95
return $ this ->client [$ pid ];
96
96
}
Original file line number Diff line number Diff line change 25
25
<actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
26
26
<actionGroup ref =" DeleteAllProductsUsingProductGridActionGroup" stepKey =" deleteAllProducts" />
27
27
28
- <createData entity =" VirtualProduct" stepKey =" createFirstSimpleProduct " />
28
+ <createData entity =" VirtualProduct" stepKey =" createFirtsSimpleProduct " />
29
29
<createData entity =" SimpleProductWithCustomSku24MB06" stepKey =" createSecondSimpleProduct" />
30
30
<createData entity =" SimpleProductWithCustomSku24MB04" stepKey =" createThirdSimpleProduct" />
31
31
<createData entity =" SimpleProductWithCustomSku24MB02" stepKey =" createFourthSimpleProduct" />
37
37
<magentoCron groups =" index" stepKey =" reindex" />
38
38
</before >
39
39
<after >
40
- <magentoCLI command =" config:set catalog/search/engine elasticsearch7" stepKey =" setSearchEngine" />
41
- <deleteData createDataKey =" createFirstSimpleProduct" stepKey =" deleteProductOne" />
40
+ <deleteData createDataKey =" createFirtsSimpleProduct" stepKey =" deleteProductOne" />
42
41
43
42
<actionGroup ref =" DeleteAllProductsUsingProductGridActionGroup" stepKey =" deleteAllProductsAfterTest" />
44
43
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" logoutFromAdminPanel" />
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class ElasticsearchTest extends TestCase
62
62
protected function setUp (): void
63
63
{
64
64
BypassFinals::enable ();
65
- $ this ->elasticsearchClientMock = $ this ->getMockBuilder (Client::class)
65
+ $ this ->elasticsearchClientMock = $ this ->getMockBuilder (Client::class) /** @phpstan-ignore-line */
66
66
->setMethods (
67
67
[
68
68
'indices ' ,
@@ -75,7 +75,7 @@ protected function setUp(): void
75
75
)
76
76
->disableOriginalConstructor ()
77
77
->getMock ();
78
- $ this ->indicesMock = $ this ->getMockBuilder (Indices::class)
78
+ $ this ->indicesMock = $ this ->getMockBuilder (Indices::class) /** @phpstan-ignore-line */
79
79
->setMethods (
80
80
[
81
81
'exists ' ,
@@ -93,7 +93,7 @@ protected function setUp(): void
93
93
)
94
94
->disableOriginalConstructor ()
95
95
->getMock ();
96
- $ this ->elasticsearchResponse = $ this ->getMockBuilder (ElasticsearchResponse::class)
96
+ $ this ->elasticsearchResponse = $ this ->getMockBuilder (ElasticsearchResponse::class) /** @phpstan-ignore-line */
97
97
->setMethods ([
98
98
'asBool ' ,
99
99
'asArray ' ,
You can’t perform that action at this time.
0 commit comments