summaryrefslogtreecommitdiffstats
path: root/tests/lib/app.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-09 10:41:25 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-09 10:41:25 +0200
commit11dfc7d141ca6a5f0d160e5d146476fa30d80648 (patch)
tree9c6b920fb6303f5f7f8b67b3c9e8bc30023a21be /tests/lib/app.php
parent5bb248efd6ad65ca812b5bfc16c42983bafda77c (diff)
downloadnextcloud-server-11dfc7d141ca6a5f0d160e5d146476fa30d80648.tar.gz
nextcloud-server-11dfc7d141ca6a5f0d160e5d146476fa30d80648.zip
added yet another test for the verion compare check due to mail
Diffstat (limited to 'tests/lib/app.php')
-rw-r--r--tests/lib/app.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/app.php b/tests/lib/app.php
index c452d752c9f..90476e58ccc 100644
--- a/tests/lib/app.php
+++ b/tests/lib/app.php
@@ -64,6 +64,14 @@ class Test_App extends PHPUnit_Framework_TestCase {
}
+ public function testIsAppVersionCompatibleShouldWorkForPreAlpha(){
+ $oc = array(5, 0, 0);
+ $app = '4.93';
+
+ $this->assertTrue(OC_App::isAppVersionCompatible($oc, $app));
+ }
+
+
public function testIsAppVersionCompatibleShouldFailOneVersionNumbers(){
$oc = array(4, 3, 1);
$app = '5';