New answers tagged

0

Maybe related to the elastic search indexer in magento 2. Elsatic search must be enabled to use it: Magento 2.3.1 adds support for Elasticsearch 6.x and it is enabled by default. Magento still provides connectivity for Elasticsearch 2.x and 5.x but these must be enabled in order to use these versions. Elasticsearch 2.x is still supported but strongly ...


0

Whereas the upper solution works, it's deprecated by PHPUnit. Instead, you can do: $this->getMockBuilder(\stdClass::class)->setMethods(['__invoke'])->getMock();


Top 50 recent answers are included