Issue: Parent is missing in the fields list that causes RoutingMissingException on flushing - test

This commit is contained in:
esodin 2014-07-24 17:07:22 +03:00
parent 1ef55b1239
commit 001b38cf59

View file

@ -30,7 +30,10 @@ class FOSElasticaExtensionTest extends \PHPUnit_Framework_TestCase
$persisterCallDefinition = $containerBuilder->getDefinition('fos_elastica.object_persister.test_index.child_field');
$this->assertArrayHasKey('_parent', $persisterCallDefinition->getArguments()['index_3']);
$arguments = $persisterCallDefinition->getArguments()['index_3'];
$this->assertArrayHasKey('_parent', $arguments);
$this->assertEquals('parent_field', $arguments['_parent']['type']);
}
}