added yet another test for the verion compare check due to mail

remotes/origin/stable6
Bernhard Posselt 12 years ago
parent 5bb248efd6
commit 11dfc7d141
  1. 8
      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';

Loading…
Cancel
Save