Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-27 15:38:10 +0300
committerJoas Schilling <coding@schilljs.com>2016-09-27 15:38:10 +0300
commit6f955defe46b498f014d4e0f105d26324bb7ecd6 (patch)
tree6dc7d4c36e3840892c36fbc2ee7071e3a8863691 /tests/lib/Updater
parent3e843fcd82e4b9d419bb19da6c6646cf51991b60 (diff)
Return the autoupdater value from the server
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/Updater')
-rw-r--r--tests/lib/Updater/VersionCheckTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/Updater/VersionCheckTest.php b/tests/lib/Updater/VersionCheckTest.php
index d6b457da8a2..7e129232edd 100644
--- a/tests/lib/Updater/VersionCheckTest.php
+++ b/tests/lib/Updater/VersionCheckTest.php
@@ -83,6 +83,7 @@ class VersionCheckTest extends \Test\TestCase {
'versionstring' => 'ownCloud 8.0.4',
'url' => 'https://download.owncloud.org/community/owncloud-8.0.4.zip',
'web' => 'http://doc.owncloud.org/server/8.0/admin_manual/maintenance/upgrade.html',
+ 'autoupdater' => '0',
];
$this->config
@@ -120,6 +121,7 @@ class VersionCheckTest extends \Test\TestCase {
<versionstring>ownCloud 8.0.4</versionstring>
<url>https://download.owncloud.org/community/owncloud-8.0.4.zip</url>
<web>http://doc.owncloud.org/server/8.0/admin_manual/maintenance/upgrade.html</web>
+ <autoupdater>0</autoupdater>
</owncloud>';
$this->updater
->expects($this->once())
@@ -176,6 +178,7 @@ class VersionCheckTest extends \Test\TestCase {
'versionstring' => '',
'url' => '',
'web' => '',
+ 'autoupdater' => '',
];
$this->config
@@ -209,6 +212,7 @@ class VersionCheckTest extends \Test\TestCase {
<versionstring></versionstring>
<url></url>
<web></web>
+ <autoupdater></autoupdater>
</owncloud>';
$this->updater
->expects($this->once())