/** * @test */ public function constructorMakesValidatorPresetsAvailable() { $formDefinition = new FormDefinition('myForm', array('validatorPresets' => array('foo' => 'bar'), 'formElementTypes' => array('Neos.Form:Form' => array()))); $this->assertSame(array('foo' => 'bar'), $formDefinition->getValidatorPresets()); }