/**
  * set to final because this is an important step which may not be overridden.
  */
 public final function tearDown()
 {
     parent::tearDown();
     if ($this->removeIndexOnTearDown === TRUE) {
         $this->testingIndex->delete();
     }
 }
 /**
  * Clean up database after running tests
  */
 public function tearDown()
 {
     parent::tearDown();
     if (isset($this->documentManager)) {
         $this->documentManager->getHttpClient()->request('DELETE', '/' . $this->settings['databaseName']);
     }
 }
 public function tearDown()
 {
     $persistenceManager = self::$bootstrap->getObjectManager()->get('TYPO3\\Flow\\Persistence\\PersistenceManagerInterface');
     if (is_callable(array($persistenceManager, 'tearDown'))) {
         $persistenceManager->tearDown();
     }
     self::$bootstrap->getObjectManager()->forgetInstance('TYPO3\\Flow\\Persistence\\PersistenceManagerInterface');
     parent::tearDown();
 }
Example #4
0
 /**
  * Persist all and destroy the persistence session for the next test
  *
  * @return void
  * @author Christopher Hlubek <*****@*****.**>
  */
 public function tearDown()
 {
     try {
         parent::tearDown();
     } catch (\Exception $e) {
         \TYPO3\Flow\var_dump($e, 'Exception during tearDown');
     }
     $this->tearDownPersistence();
 }
Example #5
0
 public function tearDown()
 {
     parent::tearDown();
 }
 /**
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->inject($this->contextFactory, 'contextInstances', array());
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->inject($this->contextFactory, 'contextInstances', array());
     $this->inject($this->objectManager->get('TYPO3\\Media\\TypeConverter\\AssetInterfaceConverter'), 'resourcesAlreadyConvertedToAssets', array());
 }
 /**
  * @return void
  */
 public function tearDown()
 {
     $this->saveNodesAndTearDownRootNodeAndRepository();
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->inject($this->contextFactory, 'contextInstances', array());
     $this->inject($this->objectManager->get(AssetInterfaceConverter::class), 'resourcesAlreadyConvertedToAssets', array());
 }
 /**
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->inject($this->contextFactory, 'contextInstances', []);
     $this->contentDimensionRepository->setDimensionsConfiguration([]);
 }
 public function tearDown()
 {
     $contentDimensionRepository = $this->objectManager->get(ContentDimensionRepository::class);
     $contentDimensionRepository->setDimensionsConfiguration(array());
     parent::tearDown();
 }
 /**
  * Persist all and destroy the persistence session for the next test
  *
  * @return void
  * @author Christopher Hlubek <*****@*****.**>
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->resetPersistenceBackend();
 }
 public function tearDown()
 {
     $contentDimensionRepository = $this->objectManager->get('TYPO3\\TYPO3CR\\Domain\\Repository\\ContentDimensionRepository');
     $contentDimensionRepository->setDimensionsConfiguration(array());
     parent::tearDown();
 }
 /**
  * Persist all and destroy the persistence session for the next test
  *
  * @return void
  * @author Christopher Hlubek <*****@*****.**>
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->objectManager->get('TYPO3\\Flow\\Persistence\\Generic\\Session')->destroy();
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->inject($this->contextFactory, 'contextInstances', array());
     $this->nodeIndexCommandController->cleanupCommand();
 }
 /**
  * @return void
  * @author Christopher Hlubek <*****@*****.**>
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->client->deleteDatabase();
 }