コード例 #1
0
 protected function tearDown()
 {
     // clear DB from separate connection, close to avoid connection limit and memory leak
     $manager = $this->getContainer()->get('akeneo_batch.job_repository')->getJobManager();
     $manager->rollback();
     $manager->getConnection()->close();
     parent::tearDown();
 }
コード例 #2
0
 protected function tearDown()
 {
     parent::tearDown();
     $configManager = $this->getContainer()->get('oro_config.manager');
     $configManager->set('oro_b2b_account.confirmation_required', $this->isConfirmationRequired);
     $configManager->set('oro_b2b_account.send_password_in_welcome_email', $this->sendPassword);
     $configManager->flush();
 }
コード例 #3
0
 protected function tearDown()
 {
     // clear DB from separate connection
     $batchJobManager = $this->getBatchJobManager();
     $batchJobManager->createQuery('DELETE AkeneoBatchBundle:JobInstance')->execute();
     $batchJobManager->createQuery('DELETE AkeneoBatchBundle:JobExecution')->execute();
     $batchJobManager->createQuery('DELETE AkeneoBatchBundle:StepExecution')->execute();
     parent::tearDown();
 }
コード例 #4
0
 public function tearDown()
 {
     $em = $this->getContainer()->get('doctrine')->getManager();
     $entities = $em->getRepository('JMS\\JobQueueBundle\\Entity\\Job')->findAll();
     foreach ($entities as $entity) {
         $em->remove($entity);
     }
     $em->flush($entities);
     parent::tearDown();
 }
コード例 #5
0
 protected function tearDown()
 {
     $this->fs->remove($this->directory);
     parent::tearDown();
 }
コード例 #6
0
 protected function tearDown()
 {
     $this->dropBatchJobs();
     $this->closeConnections();
     parent::tearDown();
 }
コード例 #7
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->dropJobsRecords();
 }
コード例 #8
0
 protected function tearDown()
 {
     $this->client->rollbackTransaction();
     parent::tearDown();
 }