protected function setUp()
 {
     parent::setUp();
     $this->doctrineCache = $this->getMockBuilder('Pim\\Bundle\\TransformBundle\\Cache\\DoctrineCache')->disableOriginalConstructor()->getMock();
     $this->transformer->expects($this->any())->method('getTransformedColumnsInfo')->will($this->returnValue(array('columns_info')));
     $this->transformer->expects($this->any())->method('transform')->will($this->returnCallback(function ($class, $data) {
         $this->assertEquals('class', $class);
         return $this->getCategoryMock($data);
     }));
     $this->processor = new CategoryProcessor($this->validator, $this->translator, $this->transformer, $this->managerRegistry, 'class', $this->doctrineCache);
     $this->stepExecution = $this->getMockBuilder('Akeneo\\Bundle\\BatchBundle\\Entity\\StepExecution')->disableOriginalConstructor()->getMock();
     $this->validator->expects($this->any())->method('validate')->will($this->returnArgument(3));
 }
 protected function setUp()
 {
     parent::setUp();
     $this->entity = new \stdClass();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->processor = new ProductProcessor($this->validator, $this->translator, $this->transformer, 'product_class');
 }