Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->subject = new \Abc\Bundle\JobBundle\Entity\LogManager($this->getEntityManager(), 'Abc\\Bundle\\JobBundle\\Logger\\Entity\\Log');
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->subject = new ScheduleManager($this->getEntityManager(), Job::class);
 }
Ejemplo n.º 3
0
 public function setUp()
 {
     $this->setKernelOptions(['environment' => $this->getEnvironment()]);
     parent::setUp();
 }
Ejemplo n.º 4
0
 /**
  * {@inheritDoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->subject = $this->getContainer()->get('abc.job.job_manager');
 }
Ejemplo n.º 5
0
 /**
  * {@inheritDoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->serializationHelper = $this->getMockBuilder(SerializationHelper::class)->disableOriginalConstructor()->getMock();
     $this->subject = new \Abc\Bundle\JobBundle\Entity\JobManager($this->getEntityManager(), Job::class, $this->getScheduleManager(), $this->serializationHelper);
 }
Ejemplo n.º 6
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     $this->setEntityManagerNames(['default', 'abc_job_processing']);
     $this->setKernelOptions(['environment' => 'dedicated_connection']);
     parent::setUp();
 }