public function shouldMap($propertyName)
{
if (isset($this->propertiesNotToBeMapped[$propertyName])) {
return false;
}
if (isset($this->propertiesToBeMapped[$propertyName])) {
return true;
}
if (isset($this->subConfigurationForProperty[self::PROPERTY_PATH_PLACEHOLDER])) {
return true;
}
return $this->mapUnknownProperties;
}
/** * @test * @covers \Neos\Flow\Property\PropertyMappingConfiguration::shouldMap */ public function shouldMapReturnsFalseForBlacklistedProperties() { $this->propertyMappingConfiguration->allowAllPropertiesExcept('someSourceProperty', 'someOtherProperty'); $this->assertFalse($this->propertyMappingConfiguration->shouldMap('someSourceProperty')); $this->assertFalse($this->propertyMappingConfiguration->shouldMap('someOtherProperty')); $this->assertTrue($this->propertyMappingConfiguration->shouldMap('someOtherPropertyWhichHasNotBeenConfigured')); }