summaryrefslogtreecommitdiffstats
path: root/tests/lib/App
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-10-31 19:39:35 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-10-31 19:39:35 +0100
commit0eeef26a8e2515b802015fe09bef7909aa183491 (patch)
tree697508eff89756ad0581e8e83e112775ad709b09 /tests/lib/App
parent1a676bacb4176016c468f3fcb2388b93a73c8c6b (diff)
downloadnextcloud-server-0eeef26a8e2515b802015fe09bef7909aa183491.tar.gz
nextcloud-server-0eeef26a8e2515b802015fe09bef7909aa183491.zip
Add tests for installer method
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests/lib/App')
-rw-r--r--tests/lib/App/AppStore/Version/VersionParserTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/App/AppStore/Version/VersionParserTest.php b/tests/lib/App/AppStore/Version/VersionParserTest.php
index 77c289e5474..ebfa98ade39 100644
--- a/tests/lib/App/AppStore/Version/VersionParserTest.php
+++ b/tests/lib/App/AppStore/Version/VersionParserTest.php
@@ -88,4 +88,12 @@ class VersionParserTest extends TestCase {
public function testGetVersionException() {
$this->versionParser->getVersion('BogusVersion');
}
+
+ /**
+ * @expectedException \Exception
+ * @expectedExceptionMessage Version cannot be parsed: >=8.2 <=9.1a
+ */
+ public function testGetVersionExceptionWithMultiple() {
+ $this->versionParser->getVersion('>=8.2 <=9.1a');
+ }
}