Example #1
0
 protected function tearDown()
 {
     if (isset($this->restore_logfile)) {
         OC_Config::setValue("logfile", $this->restore_logfile);
     } else {
         OC_Config::deleteKey("logfile");
     }
     if (isset($this->restore_logdateformat)) {
         OC_Config::setValue("logdateformat", $this->restore_logdateformat);
     } else {
         OC_Config::deleteKey("restore_logdateformat");
     }
     OC_Log_Owncloud::init();
     parent::tearDown();
 }
Example #2
0
 protected function tearDown()
 {
     $config = \OC::$server->getConfig();
     if (isset($this->restore_logfile)) {
         $config->getSystemValue("logfile", $this->restore_logfile);
     } else {
         $config->deleteSystemValue("logfile");
     }
     if (isset($this->restore_logdateformat)) {
         $config->getSystemValue("logdateformat", $this->restore_logdateformat);
     } else {
         $config->deleteSystemValue("restore_logdateformat");
     }
     OC_Log_Owncloud::init();
     parent::tearDown();
 }