File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
app/code/Magento/Elasticsearch8 Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class Elasticsearch implements ClientInterface
3232 */
3333 private array $ client ;
3434
35+
3536 /**
3637 * @var bool|null
3738 */
@@ -85,12 +86,12 @@ public function __construct(
8586 *
8687 * @return Client
8788 */
88- private function getElasticsearchClient (): Client
89+ private function getElasticsearchClient (): Client /** @phpstan-ignore-line */
8990 {
9091 $ pid = getmypid ();
9192 if (!isset ($ this ->client [$ pid ])) {
9293 $ config = $ this ->buildESConfig ($ this ->clientOptions );
93- $ this ->client [$ pid ] = ClientBuilder::fromConfig ($ config , true );
94+ $ this ->client [$ pid ] = ClientBuilder::fromConfig ($ config , true ); /** @phpstan-ignore-line */
9495 }
9596 return $ this ->client [$ pid ];
9697 }
Original file line number Diff line number Diff line change 2525 <actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
2626 <actionGroup ref =" DeleteAllProductsUsingProductGridActionGroup" stepKey =" deleteAllProducts" />
2727
28- <createData entity =" VirtualProduct" stepKey =" createFirstSimpleProduct " />
28+ <createData entity =" VirtualProduct" stepKey =" createFirtsSimpleProduct " />
2929 <createData entity =" SimpleProductWithCustomSku24MB06" stepKey =" createSecondSimpleProduct" />
3030 <createData entity =" SimpleProductWithCustomSku24MB04" stepKey =" createThirdSimpleProduct" />
3131 <createData entity =" SimpleProductWithCustomSku24MB02" stepKey =" createFourthSimpleProduct" />
3737 <magentoCron groups =" index" stepKey =" reindex" />
3838 </before >
3939 <after >
40- <magentoCLI command =" config:set catalog/search/engine elasticsearch7" stepKey =" setSearchEngine" />
41- <deleteData createDataKey =" createFirstSimpleProduct" stepKey =" deleteProductOne" />
40+ <deleteData createDataKey =" createFirtsSimpleProduct" stepKey =" deleteProductOne" />
4241
4342 <actionGroup ref =" DeleteAllProductsUsingProductGridActionGroup" stepKey =" deleteAllProductsAfterTest" />
4443 <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logoutFromAdminPanel" />
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class ElasticsearchTest extends TestCase
6262 protected function setUp (): void
6363 {
6464 BypassFinals::enable ();
65- $ this ->elasticsearchClientMock = $ this ->getMockBuilder (Client::class)
65+ $ this ->elasticsearchClientMock = $ this ->getMockBuilder (Client::class) /** @phpstan-ignore-line */
6666 ->setMethods (
6767 [
6868 'indices ' ,
@@ -75,7 +75,7 @@ protected function setUp(): void
7575 )
7676 ->disableOriginalConstructor ()
7777 ->getMock ();
78- $ this ->indicesMock = $ this ->getMockBuilder (Indices::class)
78+ $ this ->indicesMock = $ this ->getMockBuilder (Indices::class) /** @phpstan-ignore-line */
7979 ->setMethods (
8080 [
8181 'exists ' ,
@@ -93,7 +93,7 @@ protected function setUp(): void
9393 )
9494 ->disableOriginalConstructor ()
9595 ->getMock ();
96- $ this ->elasticsearchResponse = $ this ->getMockBuilder (ElasticsearchResponse::class)
96+ $ this ->elasticsearchResponse = $ this ->getMockBuilder (ElasticsearchResponse::class) /** @phpstan-ignore-line */
9797 ->setMethods ([
9898 'asBool ' ,
9999 'asArray ' ,
You can’t perform that action at this time.
0 commit comments