Clean the database after the test

This commit is contained in:
Joas Schilling 2014-05-21 16:00:21 +02:00
parent e20fb37038
commit d621a6fe5e

View file

@ -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) {