summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-04-09 08:10:26 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2013-04-09 08:10:26 -0700
commitbe47f7706027223588ee2e7eddb9434fc88bf785 (patch)
treee991e763a67e82db9f6c2d7aac73b2882b7c816b
parent6ba391c87aac47859ab8a2dae77187085343829a (diff)
parent721cbe8280c7306bb97d8fd713c559007bcda76e (diff)
downloadnextcloud-server-be47f7706027223588ee2e7eddb9434fc88bf785.tar.gz
nextcloud-server-be47f7706027223588ee2e7eddb9434fc88bf785.zip
Merge pull request #2811 from owncloud/app-version-check
added yet another test for the verion compare check due to mail
-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..5396db8143e 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, 3);
+ $app = '4.93';
+
+ $this->assertTrue(OC_App::isAppVersionCompatible($oc, $app));
+ }
+
+
public function testIsAppVersionCompatibleShouldFailOneVersionNumbers(){
$oc = array(4, 3, 1);
$app = '5';