FluidTYPO3\Flux\Tests\Unit\Form\AbstractFormTest::canCallAllGetterCounterpartsForChainableSetters PHP Method

canCallAllGetterCounterpartsForChainableSetters() public method

    public function canCallAllGetterCounterpartsForChainableSetters()
    {
        $instance = $this->createInstance();
        foreach ($this->chainProperties as $propertyName => $propertValue) {
            $setterMethodName = ObjectAccess::buildSetterMethodName($propertyName);
            $instance->{$setterMethodName}($propertValue);
            $result = ObjectAccess::getProperty($instance, $propertyName);
            $this->assertEquals($propertValue, $result);
        }
    }