/**
  * @param \FSi\Bundle\AdminBundle\Admin\Context\Request\HandlerInterface $handler
  * @param \FSi\Bundle\AdminBundle\Doctrine\Admin\ResourceElement $element
  * @param \FSi\Bundle\ResourceRepositoryBundle\Repository\MapBuilder $builder
  * @param \FSi\Bundle\AdminBundle\Admin\ResourceRepository\ResourceFormBuilder $resourceFormBuilder
  * @param \Symfony\Component\Form\Form $form
  */
 function let($handler, $element, $builder, $resourceFormBuilder, $form)
 {
     $builder->getMap()->willReturn(array('resources' => array()));
     $element->getResourceFormOptions()->willReturn(array());
     $element->getKey()->willReturn('resources');
     $resourceFormBuilder->build($element)->willReturn($form);
     $this->beConstructedWith(array($handler), $resourceFormBuilder);
     $this->setElement($element);
 }
 /**
  * {@inheritdoc}
  */
 public function setElement(Element $element)
 {
     $this->element = $element;
     $this->form = $this->resourceFormBuilder->build($this->element);
 }