summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-11 19:47:59 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-11 19:48:31 +0200
commit7eba1d806b6d0034ba399ad3aeedc336e600ab62 (patch)
tree760e92df784ad941ecc1f7775585eb8ea94b77fe
parentc5ca71ee8289886c5892880679b200755fdc6dcc (diff)
downloadnextcloud-server-7eba1d806b6d0034ba399ad3aeedc336e600ab62.tar.gz
nextcloud-server-7eba1d806b6d0034ba399ad3aeedc336e600ab62.zip
Add tests for commands in info.xml
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r--tests/lib/InfoXmlTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/InfoXmlTest.php b/tests/lib/InfoXmlTest.php
index bf6cd08ee39..4e75ca78203 100644
--- a/tests/lib/InfoXmlTest.php
+++ b/tests/lib/InfoXmlTest.php
@@ -118,5 +118,12 @@ class InfoXmlTest extends TestCase {
$this->assertInstanceOf($migration, \OC::$server->query($migration));
}
}
+
+ if (isset($appInfo['commands'])) {
+ foreach ($appInfo['commands'] as $command) {
+ $this->assertTrue(class_exists($command), 'Asserting command "'. $command . '"exists');
+ $this->assertInstanceOf($command, \OC::$server->query($command));
+ }
+ }
}
}