/**
  * @covers Kunstmaan\RedirectBundle\Form\RedirectAdminType::buildForm
  */
 public function testBuildForm()
 {
     $builder = $this->getMock('Symfony\\Component\\Form\\Test\\FormBuilderInterface');
     $builder->expects($this->at(0))->method('add')->with('origin');
     $builder->expects($this->at(1))->method('add')->with('target');
     $builder->expects($this->at(2))->method('add')->with('permanent');
     $this->object->buildForm($builder, array());
 }
 /**
  * @covers Kunstmaan\RedirectBundle\Form\RedirectAdminType::buildForm
  */
 public function testBuildForm()
 {
     $builder = $this->getMock('Symfony\\Component\\Form\\Test\\FormBuilderInterface');
     $builder->expects($this->at(0))->method('add')->with('origin');
     $builder->expects($this->at(1))->method('add')->with('target');
     $builder->expects($this->at(2))->method('add')->with('permanent');
     $this->objectSingleDomain->buildForm($builder, array('domainConfiguration' => $this->singleDomainConfiguration));
     $builder = $this->getMock('Symfony\\Component\\Form\\Test\\FormBuilderInterface');
     $builder->expects($this->at(0))->method('add')->with('domain');
     $builder->expects($this->at(1))->method('add')->with('origin');
     $builder->expects($this->at(2))->method('add')->with('target');
     $builder->expects($this->at(3))->method('add')->with('permanent');
     $this->objectMultiDomain->buildForm($builder, array('domainConfiguration' => $this->multiDomainConfiguration));
 }