From 11dfc7d141ca6a5f0d160e5d146476fa30d80648 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 9 Apr 2013 10:41:25 +0200 Subject: [PATCH 1/2] added yet another test for the verion compare check due to mail --- tests/lib/app.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/lib/app.php b/tests/lib/app.php index c452d752c9..90476e58cc 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, 0); + $app = '4.93'; + + $this->assertTrue(OC_App::isAppVersionCompatible($oc, $app)); + } + + public function testIsAppVersionCompatibleShouldFailOneVersionNumbers(){ $oc = array(4, 3, 1); $app = '5'; From 721cbe8280c7306bb97d8fd713c559007bcda76e Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 9 Apr 2013 10:47:02 +0200 Subject: [PATCH 2/2] used oc version 5.0.3 --- tests/lib/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/app.php b/tests/lib/app.php index 90476e58cc..5396db8143 100644 --- a/tests/lib/app.php +++ b/tests/lib/app.php @@ -65,7 +65,7 @@ class Test_App extends PHPUnit_Framework_TestCase { public function testIsAppVersionCompatibleShouldWorkForPreAlpha(){ - $oc = array(5, 0, 0); + $oc = array(5, 0, 3); $app = '4.93'; $this->assertTrue(OC_App::isAppVersionCompatible($oc, $app));