/** * Tests setting multiple mapping. * * @param array $mapping * @param array $expectedTypes * @param bool $cleanUp * * @dataProvider getTestSetMultipleMappingData */ public function testSetMultipleMapping($mapping, $expectedTypes, $cleanUp) { $connection = new Connection($this->getClient(), ['body' => ['mappings' => ['oldType1' => ['properties' => []]]]]); $connection->setMultipleMapping($mapping, $cleanUp); foreach ($expectedTypes as $expectedType) { $map = $connection->getMapping($expectedType); $this->assertArrayHasKey('properties', $map); } }