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(); }
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(); }
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(); }
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(); }
protected function tearDown() { $this->fs->remove($this->directory); parent::tearDown(); }
protected function tearDown() { $this->dropBatchJobs(); $this->closeConnections(); parent::tearDown(); }
protected function tearDown() { parent::tearDown(); $this->dropJobsRecords(); }
protected function tearDown() { $this->client->rollbackTransaction(); parent::tearDown(); }