Exemplo n.º 1
0
 /**
  * Cleans up oelib after running a test.
  *
  * @return void
  */
 public function cleanUp()
 {
     Tx_Oelib_ConfigurationProxy::purgeInstances();
     Tx_Oelib_BackEndLoginManager::purgeInstance();
     Tx_Oelib_ConfigurationRegistry::purgeInstance();
     Tx_Oelib_FrontEndLoginManager::purgeInstance();
     tx_oelib_Geocoding_Google::purgeInstance();
     tx_oelib_headerProxyFactory::purgeInstance();
     Tx_Oelib_MapperRegistry::purgeInstance();
     Tx_Oelib_PageFinder::purgeInstance();
     Tx_Oelib_Session::purgeInstances();
     Tx_Oelib_TemplateHelper::purgeCachedConfigurations();
     Tx_Oelib_TranslatorRegistry::purgeInstance();
     /** @var Tx_Oelib_MailerFactory $mailerFactory */
     $mailerFactory = t3lib_div::makeInstance('Tx_Oelib_MailerFactory');
     $mailerFactory->cleanUp();
 }
 protected function tearDown()
 {
     Tx_Oelib_BackEndLoginManager::purgeInstance();
     $this->testingFramework->cleanUp();
     $GLOBALS['BE_USER'] = $this->backEndUserBackup;
 }
Exemplo n.º 3
0
 /**
  * @test
  */
 public function getInstanceAfterPurgeInstanceReturnsNewInstance()
 {
     Tx_Oelib_BackEndLoginManager::purgeInstance();
     self::assertNotSame($this->subject, Tx_Oelib_BackEndLoginManager::getInstance());
 }