コード例 #1
0
ファイル: EmailCampaignTypeTest.php プロジェクト: dairdr/crm
 public function testAddProvider()
 {
     $subscriber = $this->getMock('Symfony\\Component\\EventDispatcher\\EventSubscriberInterface');
     $this->type->addSubscriber($subscriber);
 }
コード例 #2
0
 public function testSetDefaultOptions()
 {
     $resolver = $this->getMock('Symfony\\Component\\OptionsResolver\\OptionsResolverInterface');
     $resolver->expects($this->once())->method('setDefaults')->with(['data_class' => 'OroCRM\\Bundle\\CampaignBundle\\Entity\\EmailCampaign', 'cascade_validation' => true]);
     $this->type->setDefaultOptions($resolver);
 }