示例#1
0
 /**
  * Reset the single user mode and re-enable the trashbin app
  */
 protected function resetSingleUserAndTrashbin()
 {
     $this->config->setSystemValue('singleuser', $this->wasSingleUserModeEnabled);
     if ($this->wasTrashbinEnabled) {
         $this->appManager->enableApp('files_trashbin');
     }
 }
示例#2
0
 public function __destruct()
 {
     $this->config->setSystemValue('singleuser', $this->wasSingleUserModeEnabled);
     if ($this->wasTrashbinEnabled) {
         $this->appManager->enableApp('files_trashbin');
     }
 }
示例#3
0
 public function testEnableApp()
 {
     $this->expectClearCache();
     $this->manager->enableApp('test');
     $this->assertEquals('yes', $this->appConfig->getValue('test', 'enabled', 'no'));
 }
示例#4
0
 /**
  * @param array $parameters
  * @return OC_OCS_Result
  */
 public function enable($parameters)
 {
     $app = $parameters['appid'];
     $this->appManager->enableApp($app);
     return new OC_OCS_Result(null, 100);
 }