コード例 #1
0
ファイル: manager.php プロジェクト: stweil/owncloud-core
 public function testGetInstalledApps()
 {
     $this->appConfig->setValue('test1', 'enabled', 'yes');
     $this->appConfig->setValue('test2', 'enabled', 'no');
     $this->appConfig->setValue('test3', 'enabled', '["foo"]');
     $this->assertEquals(['dav', 'federatedfilesharing', 'files', 'test1', 'test3'], $this->manager->getInstalledApps());
 }
コード例 #2
0
 /**
  * Check all installed apps for updates
  */
 protected function checkAppUpdates()
 {
     $apps = $this->appManager->getInstalledApps();
     foreach ($apps as $app) {
         $update = $this->isUpdateAvailable($app);
         if ($update !== false) {
             $url = $this->urlGenerator->linkToRouteAbsolute('settings.AppSettings.viewApps') . '#app-' . $app;
             $this->createNotifications($app, $update, $url);
         }
     }
 }