protected function setUp()
 {
     parent::setUp();
     $this->slugManager = $this->getMockBuilder('OroB2B\\Bundle\\RedirectBundle\\Manager\\SlugManager')->disableOriginalConstructor()->getMock();
     $this->entity = new Page();
     $this->handler = new PageHandler($this->form, $this->request, $this->manager, $this->slugManager);
 }
 /**
  * {@inheritDoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->entity = $this->getMockBuilder('OroB2B\\Bundle\\AccountBundle\\Entity\\AccountUser')->disableOriginalConstructor()->getMock();
     $this->userManager = $this->getMockBuilder('OroB2B\\Bundle\\AccountBundle\\Entity\\AccountUserManager')->disableOriginalConstructor()->getMock();
     $this->handler = new FrontendAccountUserHandler($this->form, $this->request, $this->userManager);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->entity = new RequestStatus();
     $this->handler = new RequestStatusHandler($this->form, $this->request, $this->manager);
     $this->handler->setDefaultLocale(self::DEFAULT_LOCALE);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->entity = new RFPRequest();
     $this->templating = $this->getMock('Symfony\\Bundle\\FrameworkBundle\\Templating\\EngineInterface');
     $this->handler = new RequestChangeStatusHandler($this->form, $this->request, $this->manager, $this->templating);
 }
 /**
  * {@inheritDoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->entity = new AccountUser();
     $this->userManager = $this->getMockBuilder('OroB2B\\Bundle\\AccountBundle\\Entity\\AccountUserManager')->disableOriginalConstructor()->getMock();
     $this->passwordGenerateForm = $this->getMockBuilder('Symfony\\Component\\Form\\FormInterface')->disableOriginalConstructor()->getMock();
     $this->sendEmailForm = $this->getMockBuilder('Symfony\\Component\\Form\\FormInterface')->disableOriginalConstructor()->getMock();
     $this->securityFacade = $this->getMockBuilder('Oro\\Bundle\\SecurityBundle\\SecurityFacade')->disableOriginalConstructor()->getMock();
     $this->handler = new AccountUserHandler($this->form, $this->request, $this->userManager, $this->securityFacade);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->entity = new Request();
     $this->handler = new RequestCreateQuoteHandler($this->form, $this->request, $this->manager, $this->getUser());
 }
 protected function setUp()
 {
     parent::setUp();
     $this->entity = new Category();
     $this->handler = new CategoryHandler($this->form, $this->request, $this->manager);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->entity = new ShoppingList();
     $this->handler = new ShoppingListCreateRfpHandler($this->form, $this->request, $this->manager, $this->getUser(), (new RequestStatus())->setName(RequestStatus::DRAFT));
 }