summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-03-20 19:22:38 +0100
committerGitHub <noreply@github.com>2019-03-20 19:22:38 +0100
commit03dc79f66561b1dbaba9c036c47f14697c065e0a (patch)
treef30bc648f217344d6565b1c4462c2d14b6a98906 /apps
parentb72d270a9b1d441b4ac3a93a91486ebda68a654f (diff)
parent942281a48e2791cf6c46de758985e62806bed363 (diff)
downloadnextcloud-server-03dc79f66561b1dbaba9c036c47f14697c065e0a.tar.gz
nextcloud-server-03dc79f66561b1dbaba9c036c47f14697c065e0a.zip
Merge pull request #14578 from nextcloud/enh/force_enable_apps
Force enable apps
Diffstat (limited to 'apps')
-rw-r--r--apps/updatenotification/lib/Controller/APIController.php2
-rw-r--r--apps/updatenotification/lib/Settings/Admin.php4
-rw-r--r--apps/updatenotification/tests/Settings/AdminTest.php5
3 files changed, 2 insertions, 9 deletions
diff --git a/apps/updatenotification/lib/Controller/APIController.php b/apps/updatenotification/lib/Controller/APIController.php
index 90a5fb782f5..0314ccf38c3 100644
--- a/apps/updatenotification/lib/Controller/APIController.php
+++ b/apps/updatenotification/lib/Controller/APIController.php
@@ -90,7 +90,7 @@ class APIController extends OCSController {
]);
}
- $this->appFetcher->setVersion($newVersion, 'future-apps.json');
+ $this->appFetcher->setVersion($newVersion, 'future-apps.json', false);
// Apps available on the app store for that version
$availableApps = array_map(function(array $app) {
diff --git a/apps/updatenotification/lib/Settings/Admin.php b/apps/updatenotification/lib/Settings/Admin.php
index b1abdd874d1..571a8e9f906 100644
--- a/apps/updatenotification/lib/Settings/Admin.php
+++ b/apps/updatenotification/lib/Settings/Admin.php
@@ -45,8 +45,6 @@ class Admin implements ISettings {
private $groupManager;
/** @var IDateTimeFormatter */
private $dateTimeFormatter;
- /** @var IUserSession */
- private $session;
/** @var IFactory */
private $l10nFactory;
@@ -55,14 +53,12 @@ class Admin implements ISettings {
UpdateChecker $updateChecker,
IGroupManager $groupManager,
IDateTimeFormatter $dateTimeFormatter,
- IUserSession $session,
IFactory $l10nFactory
) {
$this->config = $config;
$this->updateChecker = $updateChecker;
$this->groupManager = $groupManager;
$this->dateTimeFormatter = $dateTimeFormatter;
- $this->session = $session;
$this->l10nFactory = $l10nFactory;
}
diff --git a/apps/updatenotification/tests/Settings/AdminTest.php b/apps/updatenotification/tests/Settings/AdminTest.php
index 3eaeb592224..9d40cb4d292 100644
--- a/apps/updatenotification/tests/Settings/AdminTest.php
+++ b/apps/updatenotification/tests/Settings/AdminTest.php
@@ -39,8 +39,6 @@ use OCP\Util;
use Test\TestCase;
class AdminTest extends TestCase {
- /** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
- protected $userSession;
/** @var IFactory|\PHPUnit_Framework_MockObject_MockObject */
protected $l10nFactory;
/** @var Admin */
@@ -61,11 +59,10 @@ class AdminTest extends TestCase {
$this->updateChecker = $this->createMock(UpdateChecker::class);
$this->groupManager = $this->createMock(IGroupManager::class);
$this->dateTimeFormatter = $this->createMock(IDateTimeFormatter::class);
- $this->userSession = $this->createMock(IUserSession::class);
$this->l10nFactory = $this->createMock(IFactory::class);
$this->admin = new Admin(
- $this->config, $this->updateChecker, $this->groupManager, $this->dateTimeFormatter, $this->userSession, $this->l10nFactory
+ $this->config, $this->updateChecker, $this->groupManager, $this->dateTimeFormatter, $this->l10nFactory
);
}