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-25 15:47:34 +0400
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-25 15:47:34 +0400
commit8068051ca42395db7386db3f8993276ad1b1007b (patch)
treef424dbee521136759d6c716881df6b787e362770 /tests
parent5bf3d286f02474c99dd52b2680594c9ed272f92a (diff)
more tests to fail the version check
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/app.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/lib/app.php b/tests/lib/app.php
index 2bcc34d3321..9cab36903a2 100644
--- a/tests/lib/app.php
+++ b/tests/lib/app.php
@@ -25,7 +25,7 @@ class Test_App extends PHPUnit_Framework_TestCase {
}
- public function testIsAppVersionCompatibleMultipleAppNumber(){
+ public function testIsAppVersionCompatibleSingleNumber(){
$oc = array(4);
$app = '4';
@@ -48,5 +48,19 @@ class Test_App extends PHPUnit_Framework_TestCase {
$this->assertFalse(OC_App::isAppVersionCompatible($oc, $app));
}
+ public function testIsAppVersionCompatibleShouldFailTwoVersionNumbers(){
+ $oc = array(4, 3, 1);
+ $app = '4.4';
+
+ $this->assertFalse(OC_App::isAppVersionCompatible($oc, $app));
+ }
+
+
+ public function testIsAppVersionCompatibleShouldFailOneVersionNumbers(){
+ $oc = array(4, 3, 1);
+ $app = '5';
+
+ $this->assertFalse(OC_App::isAppVersionCompatible($oc, $app));
+ }
} \ No newline at end of file