summaryrefslogtreecommitdiffstats
path: root/tests/lib/app.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-01-14 12:48:59 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-01-14 13:02:02 +0100
commit4b3a3dc0bb970c4de8ef1c4ea04f0d6f0aab8a2a (patch)
tree93d9662d5fb9ed6cea97198f01806eaf6f5c8a1b /tests/lib/app.php
parent9b7421972b492b287999e8644c78cb98f1d03935 (diff)
downloadnextcloud-server-4b3a3dc0bb970c4de8ef1c4ea04f0d6f0aab8a2a.tar.gz
nextcloud-server-4b3a3dc0bb970c4de8ef1c4ea04f0d6f0aab8a2a.zip
Check new and old ways of required oC version for app compatibility
Diffstat (limited to 'tests/lib/app.php')
-rw-r--r--tests/lib/app.php53
1 files changed, 51 insertions, 2 deletions
diff --git a/tests/lib/app.php b/tests/lib/app.php
index 23c1a340e03..1bd350f216a 100644
--- a/tests/lib/app.php
+++ b/tests/lib/app.php
@@ -112,7 +112,7 @@ class Test_App extends \Test\TestCase {
),
true
),
- // multiple OC number
+ // multiple OC number
array(
'4.3.1',
array(
@@ -120,7 +120,7 @@ class Test_App extends \Test\TestCase {
),
true
),
- // single app number
+ // single app number
array(
'4',
array(
@@ -208,6 +208,55 @@ class Test_App extends \Test\TestCase {
),
true
),
+ // dependencies versions before require*
+ array(
+ '6.0.0.0',
+ array(
+ 'requiremin' => '5.0',
+ 'requiremax' => '7.0',
+ 'dependencies' => array(
+ 'owncloud' => array(
+ '@attributes' => array(
+ 'min-version' => '7.0',
+ 'max-version' => '7.0',
+ ),
+ ),
+ ),
+ ),
+ false
+ ),
+ array(
+ '6.0.0.0',
+ array(
+ 'requiremin' => '5.0',
+ 'requiremax' => '7.0',
+ 'dependencies' => array(
+ 'owncloud' => array(
+ '@attributes' => array(
+ 'min-version' => '5.0',
+ 'max-version' => '5.0',
+ ),
+ ),
+ ),
+ ),
+ false
+ ),
+ array(
+ '6.0.0.0',
+ array(
+ 'requiremin' => '5.0',
+ 'requiremax' => '5.0',
+ 'dependencies' => array(
+ 'owncloud' => array(
+ '@attributes' => array(
+ 'min-version' => '5.0',
+ 'max-version' => '7.0',
+ ),
+ ),
+ ),
+ ),
+ true
+ ),
);
}