Example: allowAllPropertiesExcept('password', 'userGroup')
public allowAllPropertiesExcept ( ) : |
||
return | this |
/** * @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')); }