コード例 #1
0
 public function testBuildForm()
 {
     $builder = $this->getMockBuilder('Symfony\\Component\\Form\\FormBuilder')->disableOriginalConstructor()->getMock();
     $builder->expects($this->at(0))->method('add')->with('added', 'oro_entity_identifier', array('class' => '\\stdObject', 'multiple' => true))->will($this->returnSelf());
     $builder->expects($this->at(1))->method('add')->with('removed', 'oro_entity_identifier', array('class' => '\\stdObject', 'multiple' => true))->will($this->returnSelf());
     $this->type->buildForm($builder, array('class' => '\\stdObject', 'extend' => false));
 }