[Pkg-owncloud-commits] [owncloud] 34/66: adding unit tests for delete
David Prévot
taffit at moszumanska.debian.org
Fri Apr 18 22:49:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v5.0.15
in repository owncloud.
commit 7d52a511c65d690ce470b7988bbc8941c6445aa1
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date: Thu Oct 31 10:21:42 2013 +0100
adding unit tests for delete
---
tests/lib/ocs/privatedata.php | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/tests/lib/ocs/privatedata.php b/tests/lib/ocs/privatedata.php
index 0a242bd..423bb2c 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) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list