summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2014-02-27 13:27:24 +0100
committerMorris Jobke <morris.jobke@gmail.com>2014-03-13 13:09:32 +0100
commit4bb303cbd6152cf4199136c7142a66259531d571 (patch)
treedfc59a2fe258e3c633b861c88479c62c286d7007
parentec54bc77093265b2b9f03eecc1507cb266683624 (diff)
downloadnextcloud-server-4bb303cbd6152cf4199136c7142a66259531d571.tar.gz
nextcloud-server-4bb303cbd6152cf4199136c7142a66259531d571.zip
Clean up database before setup the database for testing
-rw-r--r--apps/files_sharing/tests/updater.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/updater.php b/apps/files_sharing/tests/updater.php
index f369062c229..1b6e3c58d59 100644
--- a/apps/files_sharing/tests/updater.php
+++ b/apps/files_sharing/tests/updater.php
@@ -26,6 +26,10 @@
class Test_Files_Sharing_Updater extends \PHPUnit_Framework_TestCase {
function setUp() {
+ // some previous tests didn't clean up and therefore this has to be done here
+ // FIXME: DIRTY HACK - TODO: find tests, that don't clean up and fix it there
+ $this->tearDown();
+
$addShares = \OC_DB::prepare('INSERT INTO `*PREFIX*share` (file_source, id, item_type, uid_owner) VALUES (?, ?, \'file\', 1)');
$shares = array(1, 2, 3);
foreach($shares as $share) {