Ejemplo n.º 1
0
 protected function setUp()
 {
     $this->contextAccessor = new ContextAccessor();
     $this->action = new AssignConstantValue($this->contextAccessor);
     $dispatcher = $this->getMockBuilder('Symfony\\Component\\EventDispatcher\\EventDispatcher')->disableOriginalConstructor()->getMock();
     $this->action->setDispatcher($dispatcher);
 }
Ejemplo n.º 2
0
 protected function setUp()
 {
     $this->contextAccessor = $this->getMockBuilder('Oro\\Bundle\\WorkflowBundle\\Model\\ContextAccessor')->disableOriginalConstructor()->getMock();
     $this->action = new AssignValue($this->contextAccessor);
     $dispatcher = $this->getMockBuilder('Symfony\\Component\\EventDispatcher\\EventDispatcher')->disableOriginalConstructor()->getMock();
     $this->action->setDispatcher($dispatcher);
 }
 protected function setUp()
 {
     $this->contextAccessor = new ContextAccessor();
     $this->defaultOwnerHelper = $this->getMockBuilder('Oro\\Bundle\\IntegrationBundle\\ImportExport\\Helper\\DefaultOwnerHelper')->disableOriginalConstructor()->getMock();
     $this->action = new PopulateIntegrationOwner($this->contextAccessor, $this->defaultOwnerHelper);
     $dispatcher = $this->getMockBuilder('Symfony\\Component\\EventDispatcher\\EventDispatcher')->disableOriginalConstructor()->getMock();
     $this->action->setDispatcher($dispatcher);
 }
Ejemplo n.º 4
0
 protected function setUp()
 {
     $this->contextAccessor = new ContextAccessor();
     $this->registry = $this->getMockBuilder('Doctrine\\Common\\Persistence\\ManagerRegistry')->getMock();
     $this->action = new RemoveEntity($this->contextAccessor, $this->registry);
     $dispatcher = $this->getMockBuilder('Symfony\\Component\\EventDispatcher\\EventDispatcher')->disableOriginalConstructor()->getMock();
     $this->action->setDispatcher($dispatcher);
 }