getTypeOfChildProperty() public method

Return the type of a given sub-property inside the $targetType
public getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string
$targetType string
$propertyName string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
return string the type of $propertyName in $targetType
 /**
  * @test
  */
 public function getTypeOfChildPropertyShouldConsiderConstructors()
 {
     $mockSchema = $this->getMockBuilder(ClassSchema::class)->disableOriginalConstructor()->getMock();
     $this->mockReflectionService->expects($this->any())->method('getClassSchema')->with('TheTargetType')->will($this->returnValue($mockSchema));
     $this->mockReflectionService->expects($this->exactly(1))->method('getMethodParameters')->with('TheTargetType', '__construct')->will($this->returnValue(['anotherProperty' => ['type' => 'string']]));
     $configuration = $this->buildConfiguration([]);
     $this->assertEquals('string', $this->converter->getTypeOfChildProperty('TheTargetType', 'anotherProperty', $configuration));
 }