Neos\Flow\Tests\Functional\Property\PropertyMapperTest::convertFromShouldThrowExceptionIfGivenSourceTypeIsNotATargetType PHP Method

convertFromShouldThrowExceptionIfGivenSourceTypeIsNotATargetType() public method

    public function convertFromShouldThrowExceptionIfGivenSourceTypeIsNotATargetType()
    {
        $source = ['__type' => Fixtures\TestClass::class, 'testField' => 'A horse'];
        $configuration = $this->objectManager->get(PropertyMappingConfigurationBuilder::class)->build();
        $configuration->setTypeConverterOption(PersistentObjectConverter::class, ObjectConverter::CONFIGURATION_OVERRIDE_TARGET_TYPE_ALLOWED, true);
        $this->propertyMapper->convert($source, Fixtures\TestEntity::class, $configuration);
    }