/** * @throws \Magento\Framework\Exception\LocalizedException * * @return void */ public function testExecuteList() { $ids = [1, 2, 5]; $this->indexer->expects($this->once())->method('doExecuteList')->with($ids); $this->indexer->executeList($ids); }