class EntityHydratorTest extends TestCase
{ private EntityHydrator
$hydrator;
private StaticDefinitionInstanceRegistry
$definitionInstanceRegistry;
protected function setUp(): void
{ $container =
new ContainerBuilder();
$this->hydrator =
new EntityHydrator($container);
$container->
set(EntityHydrator::
class,
$this->hydrator
);
$this->definitionInstanceRegistry =
new StaticDefinitionInstanceRegistry( [ FkExtensionFieldTest::
class,
CustomFieldPlainTestDefinition::
class,
CustomFieldTestDefinition::
class,
CustomFieldTestTranslationDefinition::
class,
SingleEntityDependencyTestRootDefinition::
class,
SingleEntityDependencyTestSubDefinition::
class,
SingleEntityDependencyTestDependencyDefinition::
class,