Return the autoupdater value from the server
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
cb2da786e2
commit
0fac5146bd
|
@ -89,6 +89,7 @@ class VersionCheck {
|
||||||
$tmp['versionstring'] = (string)$data->versionstring;
|
$tmp['versionstring'] = (string)$data->versionstring;
|
||||||
$tmp['url'] = (string)$data->url;
|
$tmp['url'] = (string)$data->url;
|
||||||
$tmp['web'] = (string)$data->web;
|
$tmp['web'] = (string)$data->web;
|
||||||
|
$tmp['autoupdater'] = (string)$data->autoupdater;
|
||||||
} else {
|
} else {
|
||||||
libxml_clear_errors();
|
libxml_clear_errors();
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,7 @@ class VersionCheckTest extends \Test\TestCase {
|
||||||
'versionstring' => 'ownCloud 8.0.4',
|
'versionstring' => 'ownCloud 8.0.4',
|
||||||
'url' => 'https://download.owncloud.org/community/owncloud-8.0.4.zip',
|
'url' => 'https://download.owncloud.org/community/owncloud-8.0.4.zip',
|
||||||
'web' => 'http://doc.owncloud.org/server/8.0/admin_manual/maintenance/upgrade.html',
|
'web' => 'http://doc.owncloud.org/server/8.0/admin_manual/maintenance/upgrade.html',
|
||||||
|
'autoupdater' => '0',
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->config
|
$this->config
|
||||||
|
@ -118,6 +119,7 @@ class VersionCheckTest extends \Test\TestCase {
|
||||||
<versionstring>ownCloud 8.0.4</versionstring>
|
<versionstring>ownCloud 8.0.4</versionstring>
|
||||||
<url>https://download.owncloud.org/community/owncloud-8.0.4.zip</url>
|
<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>
|
<web>http://doc.owncloud.org/server/8.0/admin_manual/maintenance/upgrade.html</web>
|
||||||
|
<autoupdater>0</autoupdater>
|
||||||
</owncloud>';
|
</owncloud>';
|
||||||
$this->updater
|
$this->updater
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
|
@ -174,6 +176,7 @@ class VersionCheckTest extends \Test\TestCase {
|
||||||
'versionstring' => '',
|
'versionstring' => '',
|
||||||
'url' => '',
|
'url' => '',
|
||||||
'web' => '',
|
'web' => '',
|
||||||
|
'autoupdater' => '',
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->config
|
$this->config
|
||||||
|
@ -207,6 +210,7 @@ class VersionCheckTest extends \Test\TestCase {
|
||||||
<versionstring></versionstring>
|
<versionstring></versionstring>
|
||||||
<url></url>
|
<url></url>
|
||||||
<web></web>
|
<web></web>
|
||||||
|
<autoupdater></autoupdater>
|
||||||
</owncloud>';
|
</owncloud>';
|
||||||
$this->updater
|
$this->updater
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
|
|
Loading…
Reference in New Issue