diff options
Diffstat (limited to 'tests/lib/RichObjectStrings/DefinitionsTest.php')
-rw-r--r-- | tests/lib/RichObjectStrings/DefinitionsTest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/RichObjectStrings/DefinitionsTest.php b/tests/lib/RichObjectStrings/DefinitionsTest.php index e226ffcd3fd..e0d400bff2c 100644 --- a/tests/lib/RichObjectStrings/DefinitionsTest.php +++ b/tests/lib/RichObjectStrings/DefinitionsTest.php @@ -37,6 +37,15 @@ class DefinitionsTest extends TestCase { } /** + * @expectedException \OCP\RichObjectStrings\InvalidObjectExeption + * @expectedExceptionMessage Object type is undefined + */ + public function testGetDefinitionNotExisting() { + $definitions = new Definitions(); + $definitions->getDefinition('NotExistingType'); + } + + /** * @dataProvider dataGetDefinition * @param string $type * @param array $expected |