diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-22 09:54:44 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-05-22 09:54:44 +0200 |
commit | eebd2811dc4427443f7be964be25c3596ef7e950 (patch) | |
tree | 5181c4cb24a605554baa45e6138bf0d442223ee4 /tests/lib/App | |
parent | e102923a978d83268c04a3a5bf678054a845a58e (diff) | |
download | nextcloud-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.php | 10 |
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']]], ]; } |