/**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $repository = $this->getMockBuilder('OroB2B\\Bundle\\RFPBundle\\Entity\\Repository\\RequestStatusRepository')->disableOriginalConstructor()->getMock();
     $repository->expects($this->any())->method('getNotDeletedAndDeletedWithRequestsStatuses')->willReturn($this->choices);
     /** @var \PHPUnit_Framework_MockObject_MockObject|ManagerRegistry $registry */
     $registry = $this->getMockBuilder('Doctrine\\Common\\Persistence\\ManagerRegistry')->disableOriginalConstructor()->getMock();
     $registry->expects($this->any())->method('getRepository')->with(self::ENTITY_CLASS)->willReturn($repository);
     $this->formType = new RequestStatusWithDeletedSelectType($registry);
     $this->formType->setEntityClass(self::ENTITY_CLASS);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $this->formType = new RequestStatusWithDeletedSelectType();
     $this->formType->setEntityClass(self::ENTITY_CLASS);
 }