diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-09 10:49:57 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-11-09 10:49:57 +0100 |
commit | 9305094b8b10a3160dc2200934e86010fadd9a02 (patch) | |
tree | 8a0bbab1fee9fe7b170e2d3fd3b4cfbecbe8f809 /tests | |
parent | 92e5fb4053eaa27984db6f6ddb7eaf028a46525b (diff) | |
download | nextcloud-server-9305094b8b10a3160dc2200934e86010fadd9a02.tar.gz nextcloud-server-9305094b8b10a3160dc2200934e86010fadd9a02.zip |
Add test and adjust PHP function arguments
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests')
-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 |