Esempio n. 1
0
 public function setUp()
 {
     parent::setUp();
     $app = new Application();
     $this->container = $app->getContainer();
     $app->registerSettings();
 }
Esempio n. 2
0
<?php

/**
 * ownCloud - ownbackup
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Patrizio Bekerle <*****@*****.**>
 * @copyright Patrizio Bekerle 2015
 */
namespace OCA\OwnBackup\AppInfo;

use OCA\OwnBackup\Jobs\BackupJob;
// I need this line so OwnBackup shows up in ownCloud 8.1.1, but in my ownCloud 8.1.1 development version from git
// it shows up two times because of it
$app = new Application();
$app->registerSettings();
\OC::$server->getJobList()->add(new BackupJob());