/** * Tests setBulkParams method. */ public function testSetBulkParams() { $client = $this->getClient(['flush']); $client->expects($this->once())->method('bulk')->with(['refresh' => 'true']); $connection = new Connection($client, []); $connection->setBulkParams(['refresh' => 'true']); $connection->commit(); }