Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* @param array $definition
* @return string[]
*/
- protected function getRequiredParameters($type, $definition) {
+ protected function getRequiredParameters($type, array $definition) {
if (isset($this->requiredParameters[$type])) {
return $this->requiredParameters[$type];
}
return $testsuite;
}
+ /**
+ * @expectedException \OCP\RichObjectStrings\InvalidObjectExeption
+ * @expectedExceptionMessage Object type is undefined
+ */
+ public function testGetDefinitionNotExisting() {
+ $definitions = new Definitions();
+ $definitions->getDefinition('NotExistingType');
+ }
+
/**
* @dataProvider dataGetDefinition
* @param string $type