]> source.dussan.org Git - nextcloud-server.git/commitdiff
more tests to fail the version check
authorBernhard Posselt <nukeawhale@gmail.com>
Mon, 25 Feb 2013 11:47:34 +0000 (12:47 +0100)
committerBernhard Posselt <nukeawhale@gmail.com>
Mon, 25 Feb 2013 11:47:34 +0000 (12:47 +0100)
tests/lib/app.php

index 2bcc34d33214f0db25d2ed4d49679b3ccbcd30be..9cab36903a24a7b0d9d6ec87ff704ad411abcffc 100644 (file)
@@ -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