public function testSetDefaultOptions()
 {
     $resolver = $this->getMock('Symfony\\Component\\OptionsResolver\\OptionsResolverInterface');
     $resolver->expects($this->once())->method('setDefaults')->with(array('data_class' => 'Oro\\Bundle\\CalendarBundle\\Entity\\CalendarEvent', 'intention' => 'calendar_event'));
     $this->type->setDefaultOptions($resolver);
 }
Esempio n. 2
0
 public function testSetDefaultOptions()
 {
     $resolver = $this->getMock('Symfony\\Component\\OptionsResolver\\OptionsResolverInterface');
     $resolver->expects($this->once())->method('setDefaults')->with(array('contexts_disabled' => true, 'allow_change_calendar' => false, 'layout_template' => false, 'data_class' => 'Oro\\Bundle\\CalendarBundle\\Entity\\CalendarEvent', 'intention' => 'calendar_event'));
     $this->type->setDefaultOptions($resolver);
 }