/**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->translator = $this->getMockBuilder('Symfony\\Component\\Translation\\TranslatorInterface')->disableOriginalConstructor()->getMock();
     $this->formType = new QuoteProductOfferType($this->translator, $this->quoteProductOfferFormatter);
     $this->formType->setDataClass('OroB2B\\Bundle\\SaleBundle\\Entity\\QuoteProductOffer');
 }
예제 #2
0
 /**
  * @param TranslatorInterface $translator
  * @return QuoteProductOfferType
  */
 protected function prepareQuoteProductOfferType(TranslatorInterface $translator)
 {
     $quoteProductOfferType = new QuoteProductOfferType($translator, $this->quoteProductOfferFormatter);
     $quoteProductOfferType->setDataClass('OroB2B\\Bundle\\SaleBundle\\Entity\\QuoteProductOffer');
     return $quoteProductOfferType;
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->formType = new QuoteProductOfferType($this->quoteProductOfferFormatter);
     $this->formType->setDataClass('OroB2B\\Bundle\\SaleBundle\\Entity\\QuoteProductOffer');
 }