Neos\Flow\Tests\Unit\Property\PropertyMappingConfigurationTest::forPropertyWithAsteriskAllowsArbitraryPropertyNamesWithForProperty PHP Метод

forPropertyWithAsteriskAllowsArbitraryPropertyNamesWithForProperty() публичный Метод

    public function forPropertyWithAsteriskAllowsArbitraryPropertyNamesWithForProperty()
    {
        // using stdClass so that class_parents() in getTypeConvertersWithParentClasses() is happy
        $this->propertyMappingConfiguration->forProperty('items.*.foo')->setTypeConverterOptions('stdClass', ['k1' => 'v1']);
        $configuration = $this->propertyMappingConfiguration->forProperty('items.6.foo');
        $this->assertSame('v1', $configuration->getConfigurationValue(\stdClass::class, 'k1'));
    }