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

github.com/nextcloud/client_updater_server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobiasKaminsky <tobias@kaminsky.me>2022-06-13 17:33:43 +0300
committertobiasKaminsky <tobias@kaminsky.me>2022-06-13 17:33:43 +0300
commitfb39cdd696d9eae2083e352b9d3e6111ff3dc357 (patch)
tree7b72a96b4f44af4dcc0f26662b478869640791b8
parentc5effcf247df72f0c42449660d5e19d3a37e0023 (diff)
add tests for beta
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
-rw-r--r--tests/unit/ResponseTest.php44
1 files changed, 43 insertions, 1 deletions
diff --git a/tests/unit/ResponseTest.php b/tests/unit/ResponseTest.php
index 2aaa457..459ae87 100644
--- a/tests/unit/ResponseTest.php
+++ b/tests/unit/ResponseTest.php
@@ -360,7 +360,49 @@ class ResponseTest extends TestCase {
</item></channel>
</rss>'
],
- ];
+ // #22 Sparkle on, always needs to know what the latest version is
+ [
+ 'nextcloud',
+ 'macos',
+ '2.2.2-rc2',
+ 'beta',
+ true,
+ $config,
+ '<?xml version="1.0" encoding="utf-8"?>
+<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <title>Download Channel</title>
+ <description>Most recent changes with links to updates.</description>
+ <language>en</language><item>
+ <title>Nextcloud Client 2.2.2-rc2</title>
+ <pubDate>Wed, 13 July 16 21:07:31 +0200</pubDate>
+ <enclosure url="https://download.nextcloud.com/desktop/stable/Nextcloud-2.2.2-rc1.pkg.tbz" sparkle:version="2.2.2-rc2" type="application/octet-stream" sparkle:edSignature="MC0CFQDmXR6biDmNVW7TvMh0bfPPTzCvtwIUCzASgpzYdi4lltOnwbFCeQwgDjY=" length="62738920"/>
+ <sparkle:minimumSystemVersion>10.13.0</sparkle:minimumSystemVersion>
+ </item></channel>
+ </rss>'
+ ],
+ // #23 Sparkle on, always needs to know what the latest version is
+ [
+ 'nextcloud',
+ 'macos',
+ '2.2.2',
+ 'beta',
+ true,
+ $config,
+ '<?xml version="1.0" encoding="utf-8"?>
+<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <channel>
+ <title>Download Channel</title>
+ <description>Most recent changes with links to updates.</description>
+ <language>en</language><item>
+ <title>Nextcloud Client 2.2.2-rc2</title>
+ <pubDate>Wed, 13 July 16 21:07:31 +0200</pubDate>
+ <enclosure url="https://download.nextcloud.com/desktop/stable/Nextcloud-2.2.2-rc1.pkg.tbz" sparkle:version="2.2.2-rc2" type="application/octet-stream" sparkle:edSignature="MC0CFQDmXR6biDmNVW7TvMh0bfPPTzCvtwIUCzASgpzYdi4lltOnwbFCeQwgDjY=" length="62738920"/>
+ <sparkle:minimumSystemVersion>10.13.0</sparkle:minimumSystemVersion>
+ </item></channel>
+ </rss>'
+ ]
+ ];
}
/**