summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-09-23 07:31:10 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-09-23 07:31:10 +0000
commitb5eee3e761e61fba11d01217fe1b8cdc2eeda0ac (patch)
tree2f8254b95a79e8469bcbce8070420746f0f49bd9
parent17a1595b312e5c9d0dac6d5b33685b457647cb8d (diff)
downloadsemanticscuttle-b5eee3e761e61fba11d01217fe1b8cdc2eeda0ac.tar.gz
semanticscuttle-b5eee3e761e61fba11d01217fe1b8cdc2eeda0ac.tar.bz2
finally fix the problem that watchlist count tests failed every second alltests run
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@737 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--src/SemanticScuttle/Service/User.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SemanticScuttle/Service/User.php b/src/SemanticScuttle/Service/User.php
index 281c18c..6fc3bb7 100644
--- a/src/SemanticScuttle/Service/User.php
+++ b/src/SemanticScuttle/Service/User.php
@@ -668,7 +668,7 @@ class SemanticScuttle_Service_User extends SemanticScuttle_DbService
}
/**
- * Delete all bookmarks.
+ * Delete all users and their watch states.
* Mainly used in unit tests.
*
* @return void
@@ -677,6 +677,9 @@ class SemanticScuttle_Service_User extends SemanticScuttle_DbService
{
$query = 'TRUNCATE TABLE `'. $this->getTableName() .'`';
$this->db->sql_query($query);
+
+ $query = 'TRUNCATE TABLE `' . $GLOBALS['tableprefix'] . 'watched' . '`';
+ $this->db->sql_query($query);
}
/**