public static function tearDownAfterClass()
 {
     $contents = file_get_contents(INSTANCE_ROOT . '/protected/config/perInstanceTest.php');
     $contents = preg_replace('/\\$maintenanceMode\\s*=\\s*true;/', '$maintenanceMode = false;', $contents);
     file_put_contents(INSTANCE_ROOT . '/protected/config/perInstanceTest.php', $contents);
     parent::tearDownAfterClass();
 }
 public static function tearDownAfterClass()
 {
     $contents = file_get_contents(static::$perInstanceTestFilePath);
     $contents = preg_replace('/\\$maintenanceMode\\s*=\\s*true;/', '$maintenanceMode = false;', $contents);
     file_put_contents(static::$perInstanceTestFilePath, $contents);
     parent::tearDownAfterClass();
 }
Пример #3
0
 public static function tearDownAfterClass()
 {
     ZurmoRedBean::$writer->dropTableByTableName('testimporttable');
     ZurmoRedBean::$writer->dropTableByTableName('testimporttable2');
     ZurmoRedBean::$writer->dropTableByTableName('testimporttable3');
     ZurmoRedBean::$writer->dropTableByTableName('testimporttable4');
     parent::tearDownAfterClass();
 }
Пример #4
0
 public static function tearDownAfterClass()
 {
     R::exec('drop table if exists testimporttable');
     R::exec('drop table if exists testimporttable2');
     R::exec('drop table if exists testimporttable3');
     R::exec('drop table if exists testimporttable4');
     parent::tearDownAfterClass();
 }
Пример #5
0
 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     $_FILES = null;
 }
 public static function tearDownAfterClass()
 {
     $imap = new ZurmoImap();
     $imap->imapHost = Yii::app()->params['emailTestAccounts']['userImapSettings']['imapHost'];
     $imap->imapUsername = Yii::app()->params['emailTestAccounts']['userImapSettings']['imapUsername'];
     $imap->imapPassword = Yii::app()->params['emailTestAccounts']['userImapSettings']['imapPassword'];
     $imap->imapPort = Yii::app()->params['emailTestAccounts']['userImapSettings']['imapPort'];
     $imap->imapSSL = Yii::app()->params['emailTestAccounts']['userImapSettings']['imapSSL'];
     $imap->imapFolder = Yii::app()->params['emailTestAccounts']['userImapSettings']['imapFolder'];
     $imap->init();
     $imap->connect();
     $imap->deleteMessages(true);
     Yii::app()->emailHelper->sendEmailThroughTransport = self::$emailHelperSendEmailThroughTransport;
     parent::tearDownAfterClass();
 }
Пример #7
0
 public static function tearDownAfterClass()
 {
     EmailMessageTestHelper::purgeAllMessages();
     Yii::app()->emailHelper->sendEmailThroughTransport = self::$emailHelperSendEmailThroughTransport;
     parent::tearDownAfterClass();
 }
 public static function tearDownAfterClass()
 {
     Yii::app()->readPermissionSubscriptionObserver->enabled = false;
     parent::tearDownAfterClass();
 }
Пример #9
0
 public static function tearDownAfterClass()
 {
     Yii::app()->gameHelper->unmuteScoringModelsOnSave();
     parent::tearDownAfterClass();
 }
 public static function tearDownAfterClass()
 {
     Yii::app()->emailHelper->sendEmailThroughTransport = self::$emailHelperSendEmailThroughTransport;
     parent::tearDownAfterClass();
 }
Пример #11
0
 public static function tearDownAfterClass()
 {
     if (self::$freeze) {
         RedBeanDatabase::freeze();
     }
     parent::tearDownAfterClass();
 }
Пример #12
0
 public static function tearDownAfterClass()
 {
     RedBeanColumnTypeOptimizer::$optimizedTableColumns = array();
     Yii::app()->gameHelper->unmuteScoringModelsOnSave();
     parent::tearDownAfterClass();
 }