tearDown() публичный Метод

Note: tearDown() is also called if an exception occurred in one of the tests. If the problem is caused by some security or persistence related part of Flow, the error might be hard to track because their specialized tearDown() methods might cause fatal errors. In those cases just output the original exception message by adding an echo($this->statusMessage) as the first line of this method.
public tearDown ( ) : void
Результат void
 public function tearDown()
 {
     $persistenceManager = self::$bootstrap->getObjectManager()->get(PersistenceManagerInterface::class);
     if (is_callable(array($persistenceManager, 'tearDown'))) {
         $persistenceManager->tearDown();
     }
     self::$bootstrap->getObjectManager()->forgetInstance(PersistenceManagerInterface::class);
     parent::tearDown();
 }
 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(AssetInterfaceConverter::class), 'resourcesAlreadyConvertedToAssets', array());
 }
 /**
  * @return void
  */
 public function tearDown()
 {
     $this->saveNodesAndTearDownRootNodeAndRepository();
     parent::tearDown();
 }
Пример #5
0
 public function tearDown()
 {
     parent::tearDown();
     $this->emittedSignals = [];
 }
 /**
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->inject($this->contextFactory, 'contextInstances', []);
     $this->contentDimensionRepository->setDimensionsConfiguration([]);
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->queue->flush();
 }
 /**
  * @return void
  */
 public function tearDown()
 {
     $this->objectManager->setInstance(ConfigurationManager::class, $this->originalConfigurationManager);
     $this->injectApplicationContextIntoConfigurationManager($this->objectManager->getContext());
     parent::tearDown();
 }
 public function tearDown()
 {
     $contentDimensionRepository = $this->objectManager->get(ContentDimensionRepository::class);
     $contentDimensionRepository->setDimensionsConfiguration(array());
     parent::tearDown();
 }