Add tests for commands in info.xml

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2016-10-11 19:47:59 +02:00
parent c5ca71ee82
commit 7eba1d806b
No known key found for this signature in database
GPG key ID: 1E152838F164D13B

View file

@ -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));
}
}
}
}