From: Bernhard Posselt Date: Tue, 9 Apr 2013 08:41:25 +0000 (+0200) Subject: added yet another test for the verion compare check due to mail X-Git-Tag: v6.0.0alpha2~935^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=11dfc7d141ca6a5f0d160e5d146476fa30d80648;p=nextcloud-server.git added yet another test for the verion compare check due to mail --- 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';