summaryrefslogtreecommitdiffstats
path: root/tests/lib/App
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-22 09:54:44 +0200
committerJoas Schilling <coding@schilljs.com>2017-05-22 09:54:44 +0200
commiteebd2811dc4427443f7be964be25c3596ef7e950 (patch)
tree5181c4cb24a605554baa45e6138bf0d442223ee4 /tests/lib/App
parente102923a978d83268c04a3a5bf678054a845a58e (diff)
downloadnextcloud-server-eebd2811dc4427443f7be964be25c3596ef7e950.tar.gz
nextcloud-server-eebd2811dc4427443f7be964be25c3596ef7e950.zip
Version and dependency are now required
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/App')
-rw-r--r--tests/lib/App/CodeChecker/InfoCheckerTest.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/lib/App/CodeChecker/InfoCheckerTest.php b/tests/lib/App/CodeChecker/InfoCheckerTest.php
index c16874fbd33..760d9880739 100644
--- a/tests/lib/App/CodeChecker/InfoCheckerTest.php
+++ b/tests/lib/App/CodeChecker/InfoCheckerTest.php
@@ -50,10 +50,12 @@ class InfoCheckerTest extends TestCase {
public function appInfoData() {
return [
['testapp-infoxml', []],
- ['testapp-version', []],
- ['testapp-infoxml-version', []],
- ['testapp-infoxml-version-different', [['type' => 'differentVersions', 'message' => 'appinfo/version: 1.2.4 - appinfo/info.xml: 1.2.3']]],
- ['testapp-version-missing', []],
+ ['testapp-version', [['type' => 'mandatoryFieldMissing', 'field' => 'version']]],
+ ['testapp-dependency-missing', [
+ ['type' => 'missingRequirement', 'field' => 'min'],
+ ['type' => 'missingRequirement', 'field' => 'max'],
+ ['type' => 'mandatoryFieldMissing', 'field' => 'dependencies'],
+ ]],
['testapp-name-missing', [['type' => 'mandatoryFieldMissing', 'field' => 'name']]],
];
}