Exemplo n.º 1
0
 /**
  * Tears down this test case.
  */
 protected function tearDown()
 {
     parent::tearDown();
     unset($this->elementProphecy);
     unset($this->objectManagerProphecy);
     unset($this->controllerContextProphecy);
 }
Exemplo n.º 2
0
 protected function tearDown()
 {
     if (!empty($this->extension) && $this->extension->getExtensionKey() != null) {
         GeneralUtility::rmdir($this->extension->getExtensionDir(), true);
     }
     parent::tearDown();
 }
Exemplo n.º 3
0
 /**
  * Explicitly clean up the indexer object to prevent any memory leaks
  */
 public function tearDown()
 {
     if ($this->temporaryFileName) {
         @unlink($this->temporaryFileName);
     }
     parent::tearDown();
 }
Exemplo n.º 4
0
 /**
  * @return void
  */
 public function tearDown()
 {
     foreach ($this->fakedExtensions as $extension => $dummy) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::rmdir(PATH_site . 'typo3temp/' . $extension, TRUE);
     }
     parent::tearDown();
 }
 /**
  * Tear down test case
  */
 public function tearDown()
 {
     foreach ($this->testFilesToDelete as $absoluteFileName) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::unlink_tempfile($absoluteFileName);
     }
     parent::tearDown();
 }
Exemplo n.º 6
0
 /**
  * @return void
  */
 protected function tearDown()
 {
     foreach ($this->fakedExtensions as $fakeExtkey => $fakeExtension) {
         $this->testFilesToDelete[] = PATH_site . 'typo3temp/' . $fakeExtkey;
     }
     parent::tearDown();
 }
Exemplo n.º 7
0
 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // Restore locallangXMLOverride and localization format priority
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride'] = $this->locallangXMLOverride;
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['format']['priority'] = $this->l10nPriority;
     \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Localization\LanguageStore::class)->initialize();
     parent::tearDown();
 }
Exemplo n.º 8
0
 protected function tearDown()
 {
     \TYPO3\CMS\Core\Utility\GeneralUtility::resetSingletonInstances($this->singletonInstances);
     foreach ($this->filesCreated as $file) {
         unlink($file);
     }
     parent::tearDown();
 }
Exemplo n.º 9
0
	protected function tearDown() {
		ExtensionManagementUtility::clearExtensionKeyMap();
		ExtensionManagementUtilityAccessibleProxy::setPackageManager($this->backUpPackageManager);
		ExtensionManagementUtilityAccessibleProxy::setCacheManager(NULL);
		$GLOBALS['TYPO3_LOADED_EXT'] = new LoadedExtensionsArray($this->backUpPackageManager);
		GeneralUtility::resetSingletonInstances($this->singletonInstances);
		parent::tearDown();
	}
Exemplo n.º 10
0
 protected function tearDown()
 {
     foreach ($this->backupLocales as $category => $locale) {
         setlocale(constant($category), $locale);
     }
     date_default_timezone_set($this->timezone);
     parent::tearDown();
 }
 /**
  * Tear down
  *
  * @return void
  */
 protected function tearDown()
 {
     ExtensionManagementUtility::setPackageManager($this->backupPackageManager);
     if (file_exists(PATH_site . 'typo3temp/ExtensionCompatibilityTester.txt')) {
         unlink(PATH_site . 'typo3temp/ExtensionCompatibilityTester.txt');
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     Utility\GeneralUtility::resetSingletonInstances($this->singletonInstances);
     foreach ($this->testFilesToDelete as $absoluteFileName) {
         Utility\GeneralUtility::rmdir($absoluteFileName, TRUE);
     }
     parent::tearDown();
 }
Exemplo n.º 13
0
 /**
  * Tear down
  */
 public function tearDown()
 {
     foreach ($this->testNodesToDelete as $node) {
         if (\TYPO3\CMS\Core\Utility\GeneralUtility::isFirstPartOfStr($node, PATH_site . 'typo3temp/')) {
             \TYPO3\CMS\Core\Utility\GeneralUtility::rmdir($node, TRUE);
         }
     }
     parent::tearDown();
 }
 /**
  * @return void
  */
 public function tearDown()
 {
     foreach ($this->fakedExtensions as $extension => $dummy) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::rmdir(PATH_site . 'typo3conf/ext/' . $extension, TRUE);
     }
     foreach ($this->resourcesToRemove as $resource) {
         if (file_exists($resource) && is_file($resource)) {
             unlink($resource);
         } elseif (file_exists($resource) && is_dir($resource)) {
             rmdir($resource);
         }
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     ExtensionManagementUtility::clearExtensionKeyMap();
     foreach ($this->testFilesToDelete as $absoluteFileName) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::unlink_tempfile($absoluteFileName);
     }
     if (file_exists(PATH_site . 'typo3temp/test_ext/')) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::rmdir(PATH_site . 'typo3temp/test_ext/', TRUE);
     }
     ExtensionManagementUtilityAccessibleProxy::setPackageManager($this->backUpPackageManager);
     ExtensionManagementUtilityAccessibleProxy::setCacheManager(NULL);
     $GLOBALS['TYPO3_LOADED_EXT'] = new \TYPO3\CMS\Core\Compatibility\LoadedExtensionsArray($this->backUpPackageManager);
     \TYPO3\CMS\Core\Utility\GeneralUtility::resetSingletonInstances($this->singletonInstances);
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     unset($this->subject, $this->errorRepositoryMock, $this->extensionConfigurationMock, $this->pageCacheMock);
 }
Exemplo n.º 17
0
 /**
  * Tear down.
  */
 protected function tearDown()
 {
     parent::tearDown();
     unset($this->subject);
     unset($this->fileReferenceProphecies);
 }
 /**
  * Tear down
  */
 protected function tearDown()
 {
     Fixtures\GeneralUtilityFixture::setApplicationContext($this->backupApplicationContext);
     parent::tearDown();
 }
 /**
  * Shut down
  *
  * @return void
  */
 public function tearDown()
 {
     \TYPO3\CMS\Core\Utility\GeneralUtility::resetSingletonInstances($this->singletonInstances);
     unset($this->fileCollectionRepositoryMock);
     unset($this->frontendConfigurationManagerMock);
     unset($this->subject);
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     unset($this->subject, $this->errorHandlerMock);
 }
 /**
  * Tear down
  */
 protected function tearDown()
 {
     GeneralUtility::resetSingletonInstances($this->singletonInstances);
     parent::tearDown();
 }
Exemplo n.º 22
0
 /**
  * Tear down
  */
 public function tearDown()
 {
     GeneralUtility::resetSingletonInstances($this->backupSingletons);
     parent::tearDown();
 }
Exemplo n.º 23
0
 protected function tearDown()
 {
     parent::tearDown();
 }
Exemplo n.º 24
0
 public function tearDown()
 {
     \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Log\\LogManager')->reset();
     parent::tearDown();
 }
 public function tearDown()
 {
     \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::purgeInstances();
     parent::tearDown();
 }
Exemplo n.º 26
0
 protected function tearDown()
 {
     \TYPO3\CMS\Core\Utility\GeneralUtility::resetSingletonInstances($this->singletonInstances);
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     unset($this->subject, $this->frontendUserMock);
 }
 protected function tearDown()
 {
     setlocale(LC_NUMERIC, $this->currentLocale);
     GeneralUtility::resetSingletonInstances($this->singletonInstances);
     parent::tearDown();
 }
Exemplo n.º 29
0
 /**
  * Tears down this test case.
  */
 protected function tearDown()
 {
     parent::tearDown();
     unset($this->subject);
 }
Exemplo n.º 30
0
 protected function tearDown()
 {
     date_default_timezone_set($this->timezoneBackup);
     parent::tearDown();
 }