public function testNoCsrfProtectionByDefaultIfRootButNotCompound()
{
$view = $this->factory
->create('Symfony\Component\Form\Extension\Core\Type\FormType', null, array(
'csrf_field_name' => 'csrf',
'compound' => false,
))
->createView();
$this->assertFalse(isset($view['csrf']));
}