diff --git a/tests/lib/app.php b/tests/lib/app.php index c452d752c9f43cc13cc8749fd7242d9619ebe96b..5396db8143e8cc5358d7edb5b7d487a4bf6aa83b 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, 3); + $app = '4.93'; + + $this->assertTrue(OC_App::isAppVersionCompatible($oc, $app)); + } + + public function testIsAppVersionCompatibleShouldFailOneVersionNumbers(){ $oc = array(4, 3, 1); $app = '5';