diff --git a/app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/ElasticsearchTest.php b/app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/ElasticsearchTest.php index 78e5b8ce32131..e36db5dcc196d 100644 --- a/app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/ElasticsearchTest.php +++ b/app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/ElasticsearchTest.php @@ -338,7 +338,7 @@ public function testCleanIndex() ->method('getIndexName') ->willReturnMap([[1, 'product', [1 => null], '_product_1_v0']]); - $this->client->expects($this->any()) + $this->client->expects($this->atLeastOnce()) ->method('indexExists') ->willReturnMap( [