public function setUp() { parent::setUp(); $options = array('csrf_protection' => false); $this->form = $this->app['form.factory']->createBuilder('main_edit', null, $options)->getForm(); }