/** * 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'); } }
public function __destruct() { $this->config->setSystemValue('singleuser', $this->wasSingleUserModeEnabled); if ($this->wasTrashbinEnabled) { $this->appManager->enableApp('files_trashbin'); } }
public function testEnableApp() { $this->expectClearCache(); $this->manager->enableApp('test'); $this->assertEquals('yes', $this->appConfig->getValue('test', 'enabled', 'no')); }
/** * @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); }