summaryrefslogtreecommitdiffstats
path: root/tests/lib/preferences.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-05-21 16:00:21 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-05-21 16:00:21 +0200
commitd621a6fe5e571f3a273d0db301e3d5e14ed10763 (patch)
tree0b899caf5fb0946e1cfbfd770e50993e6ddab69b /tests/lib/preferences.php
parente20fb37038ab78c67701cae0086b78b409364147 (diff)
downloadnextcloud-server-d621a6fe5e571f3a273d0db301e3d5e14ed10763.tar.gz
nextcloud-server-d621a6fe5e571f3a273d0db301e3d5e14ed10763.zip
Clean the database after the test
Diffstat (limited to 'tests/lib/preferences.php')
-rw-r--r--tests/lib/preferences.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/preferences.php b/tests/lib/preferences.php
index 96228fcca15..499be914fb7 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) {