FluidTYPO3\Flux\Tests\Unit\FormTest::canAddSameFieldTwiceWithoutErrorAndWithoutDoubles PHP Method

canAddSameFieldTwiceWithoutErrorAndWithoutDoubles() public method

    public function canAddSameFieldTwiceWithoutErrorAndWithoutDoubles()
    {
        $form = $this->getEmptyDummyForm();
        $field = $form->createField('Input', 'input', 'Input field');
        $form->last()->add($field)->add($field);
        $this->assertTrue($form->last()->has($field));
    }