/**
  * {@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');
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $this->translator = $this->getMockBuilder('Symfony\\Component\\Translation\\TranslatorInterface')->disableOriginalConstructor()->getMock();
     /* @var $productUnitLabelFormatter \PHPUnit_Framework_MockObject_MockObject|ProductUnitLabelFormatter */
     $productUnitLabelFormatter = $this->getMockBuilder('OroB2B\\Bundle\\ProductBundle\\Formatter\\ProductUnitLabelFormatter')->disableOriginalConstructor()->getMock();
     $productUnitLabelFormatter->expects($this->any())->method('format')->will($this->returnCallback(function ($unitCode, $isShort) {
         return $unitCode . '-formatted-' . ($isShort ? 'short' : 'full');
     }));
     parent::setUp();
     $this->formType = new QuoteProductType($this->translator, $productUnitLabelFormatter, $this->quoteProductFormatter);
     $this->formType->setDataClass('OroB2B\\Bundle\\SaleBundle\\Entity\\QuoteProduct');
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->formType = new QuoteType();
     $this->formType->setDataClass('OroB2B\\Bundle\\SaleBundle\\Entity\\Quote');
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->formType = new QuoteProductOfferType($this->quoteProductOfferFormatter);
     $this->formType->setDataClass('OroB2B\\Bundle\\SaleBundle\\Entity\\QuoteProductOffer');
 }