Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-02-26 12:37:11 +0400
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-26 12:37:11 +0400
commit5b250afafc9e32e64458bb9237e4f895a0be3e4a (patch)
tree6a9fe102e04f5f7d1f1265876fade0a4e2f88a32 /tests
parent072daf8850c87b070c3dad921c16246d095d9cb2 (diff)
parentf415f3e03e733e6110827d28470aae51bdaea844 (diff)
Merge pull request #1903 from owncloud/fix_version_check
return true once one owncloud version number is bigger at any position
Diffstat (limited to 'tests')
-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 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);