diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-25 23:06:26 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-25 23:06:26 +0100 |
commit | f415f3e03e733e6110827d28470aae51bdaea844 (patch) | |
tree | 4378fd140b8cab1212568295fcff52da1a52a173 /tests | |
parent | 946a064fc6b57915c09026e0b02d0bed01a852e3 (diff) | |
download | nextcloud-server-f415f3e03e733e6110827d28470aae51bdaea844.tar.gz nextcloud-server-f415f3e03e733e6110827d28470aae51bdaea844.zip |
return true once one owncloud version number is bigger at any position
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/app.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/app.php b/tests/lib/app.php index 9cab36903a2..c452d752c9f 100644 --- a/tests/lib/app.php +++ b/tests/lib/app.php @@ -40,6 +40,14 @@ class Test_App extends PHPUnit_Framework_TestCase { $this->assertTrue(OC_App::isAppVersionCompatible($oc, $app)); } + + public function testIsAppVersionCompatibleComplex(){ + $oc = array(5, 0, 0); + $app = '4.5.1'; + + $this->assertTrue(OC_App::isAppVersionCompatible($oc, $app)); + } + public function testIsAppVersionCompatibleShouldFail(){ $oc = array(4, 3, 1); |