diff --git a/Neos.ContentRepository.LegacyNodeMigration/Tests/Behavior/Bootstrap/FeatureContext.php b/Neos.ContentRepository.LegacyNodeMigration/Tests/Behavior/Bootstrap/FeatureContext.php index 7b8ef635cf..fa8c3b68f4 100644 --- a/Neos.ContentRepository.LegacyNodeMigration/Tests/Behavior/Bootstrap/FeatureContext.php +++ b/Neos.ContentRepository.LegacyNodeMigration/Tests/Behavior/Bootstrap/FeatureContext.php @@ -103,24 +103,26 @@ public function iRunTheEventMigration(RootNodeTypeMapping $rootNodeTypeMapping = $propertyMapper = $this->getObject(PropertyMapper::class); // HACK to access the property converter - $propertyConverterAccess = new class implements ContentRepositoryServiceFactoryInterface { + $crInternalsAccess = new class implements ContentRepositoryServiceFactoryInterface { public PropertyConverter|null $propertyConverter; + public EventNormalizer|null $eventNormalizer; public function build(ContentRepositoryServiceFactoryDependencies $serviceFactoryDependencies): ContentRepositoryServiceInterface { $this->propertyConverter = $serviceFactoryDependencies->propertyConverter; + $this->eventNormalizer = $serviceFactoryDependencies->eventNormalizer; return new class implements ContentRepositoryServiceInterface { }; } }; - $this->getContentRepositoryService($propertyConverterAccess); + $this->getContentRepositoryService($crInternalsAccess); $eventExportProcessor = new EventExportProcessor( $nodeTypeManager, $propertyMapper, - $propertyConverterAccess->propertyConverter, + $crInternalsAccess->propertyConverter, $this->currentContentRepository->getVariationGraph(), - $this->getObject(EventNormalizer::class), + $crInternalsAccess->eventNormalizer, $rootNodeTypeMapping ?? RootNodeTypeMapping::fromArray(['/sites' => NodeTypeNameFactory::NAME_SITES]), $this->nodeDataRows );