Merge pull request #2811 from owncloud/app-version-check
added yet another test for the verion compare check due to mail
This commit is contained in:
commit
be47f77060
|
@ -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(){
|
public function testIsAppVersionCompatibleShouldFailOneVersionNumbers(){
|
||||||
$oc = array(4, 3, 1);
|
$oc = array(4, 3, 1);
|
||||||
$app = '5';
|
$app = '5';
|
||||||
|
|
Loading…
Reference in New Issue