summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-02 10:45:26 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-02 10:45:26 +0200
commit7f2e9d10a3ce0b1f2bcddcaad32b57e945b4e0ca (patch)
treed1a3c793a9bff1b2ae1bc9d7e73452be6f661e49 /apps/updatenotification/tests
parent45d080d70e2b34161103aee21478c3745e9b5700 (diff)
downloadnextcloud-server-7f2e9d10a3ce0b1f2bcddcaad32b57e945b4e0ca.tar.gz
nextcloud-server-7f2e9d10a3ce0b1f2bcddcaad32b57e945b4e0ca.zip
Show correct status in update notification
Sometimes it could be the case that after a channel change the last updated timestamp is reset, but the check for updates is not yet completed. In this case the update notification showed "You are up to date" and the date was "1970-01-01 00:00:00". With this fix the state is properly shown. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/updatenotification/tests')
-rw-r--r--apps/updatenotification/tests/Controller/AdminControllerTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/updatenotification/tests/Controller/AdminControllerTest.php b/apps/updatenotification/tests/Controller/AdminControllerTest.php
index 31e852a9e2e..21e86b7c02d 100644
--- a/apps/updatenotification/tests/Controller/AdminControllerTest.php
+++ b/apps/updatenotification/tests/Controller/AdminControllerTest.php
@@ -120,6 +120,7 @@ class AdminControllerTest extends TestCase {
$params = [
'isNewVersionAvailable' => true,
+ 'isUpdateChecked' => true,
'lastChecked' => 'LastCheckedReturnValue',
'currentChannel' => \OCP\Util::getChannel(),
'channels' => $channels,
@@ -166,6 +167,7 @@ class AdminControllerTest extends TestCase {
$params = [
'isNewVersionAvailable' => false,
+ 'isUpdateChecked' => true,
'lastChecked' => 'LastCheckedReturnValue',
'currentChannel' => \OCP\Util::getChannel(),
'channels' => $channels,