[Pkg-owncloud-commits] [owncloud] 106/153: Clean the database after the test

David Prévot taffit at moszumanska.debian.org
Tue May 27 03:05:43 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit d621a6fe5e571f3a273d0db301e3d5e14ed10763
Author: Joas Schilling <nickvergessen at gmx.de>
Date:   Wed May 21 16:00:21 2014 +0200

    Clean the database after the test
---
 tests/lib/preferences.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/lib/preferences.php b/tests/lib/preferences.php
index 96228fc..499be91 100644
--- a/tests/lib/preferences.php
+++ b/tests/lib/preferences.php
@@ -205,6 +205,10 @@ class Test_Preferences_Object extends PHPUnit_Framework_TestCase {
 
 		$values = $preferences->getValueForUsers('testGetUserValues', 'somekey', $users);
 		$this->assertUserValues($values);
+
+		// Clean DB after the test
+		$query = \OC_DB::prepare('DELETE FROM `*PREFIX*preferences` WHERE `appid` = ?');
+		$query->execute(array('testGetUserValues'));
 	}
 
 	protected function assertUserValues($values) {

-- 
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