mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Add tests for commands in info.xml
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
c5ca71ee82
commit
7eba1d806b
1 changed files with 7 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue