diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-09-28 12:29:02 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-28 12:37:08 +0200 |
commit | 1602e82363a8e33a982b6b258e0184d9f2afc839 (patch) | |
tree | 0527b97f686efd9cf339c42e6604e2170ede141c /apps/updatenotification/tests | |
parent | f219ed2e99a759ddc41ea41e8d8b187aa2d4b002 (diff) | |
download | nextcloud-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.php | 2 |
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, |