summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-09-28 12:29:02 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-28 12:37:08 +0200
commit1602e82363a8e33a982b6b258e0184d9f2afc839 (patch)
tree0527b97f686efd9cf339c42e6604e2170ede141c /apps/updatenotification/tests
parentf219ed2e99a759ddc41ea41e8d8b187aa2d4b002 (diff)
downloadnextcloud-server-1602e82363a8e33a982b6b258e0184d9f2afc839.tar.gz
nextcloud-server-1602e82363a8e33a982b6b258e0184d9f2afc839.zip
UpdateState is empty if no update is available
This leads to log messages such as "Undefined index: updaterEnabled at /media/psf/nextcloud/apps/updatenotification/lib/Controller/AdminController.php#116". Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/updatenotification/tests')
-rw-r--r--apps/updatenotification/tests/Controller/AdminControllerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/updatenotification/tests/Controller/AdminControllerTest.php b/apps/updatenotification/tests/Controller/AdminControllerTest.php
index 2360663e1c5..31e852a9e2e 100644
--- a/apps/updatenotification/tests/Controller/AdminControllerTest.php
+++ b/apps/updatenotification/tests/Controller/AdminControllerTest.php
@@ -162,7 +162,7 @@ class AdminControllerTest extends TestCase {
$this->updateChecker
->expects($this->once())
->method('getUpdateState')
- ->willReturn(['updaterEnabled' => false]);
+ ->willReturn([]);
$params = [
'isNewVersionAvailable' => false,