diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/ocs/privatedata.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/lib/ocs/privatedata.php b/tests/lib/ocs/privatedata.php index 0a242bd5f8e..423bb2c96b6 100644 --- a/tests/lib/ocs/privatedata.php +++ b/tests/lib/ocs/privatedata.php @@ -75,6 +75,22 @@ class Test_OC_OCS_Privatedata extends PHPUnit_Framework_TestCase } /** + * @dataProvider deleteWithEmptyKeysProvider + */ + public function testDeleteWithEmptyKeys($params) { + $result = OC_OCS_Privatedata::delete($params); + $this->assertEquals(101, $result->getStatusCode()); + } + + public function deleteWithEmptyKeysProvider() { + return array( + array(array()), + array(array('app' => '123')), + array(array('key' => '123')), + ); + } + + /** * @param \OC_OCS_Result $result */ public function assertOcsResult($expectedArraySize, $result) { |