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

returnsNameInsteadOfEmptyLabelWhenFormsExtensionKeyAndLabelAreBothEmpty() public method

    public function returnsNameInsteadOfEmptyLabelWhenFormsExtensionKeyAndLabelAreBothEmpty()
    {
        $name = TRUE === isset($this->chainProperties['name']) ? $this->chainProperties['name'] : 'test';
        $instance = $this->createInstance();
        $instance->setExtensionName(NULL);
        $instance->setName($name);
        $instance->setLabel(NULL);
        $this->assertEquals($name, $instance->getLabel());
    }