From b5eee3e761e61fba11d01217fe1b8cdc2eeda0ac Mon Sep 17 00:00:00 2001 From: cweiske Date: Thu, 23 Sep 2010 07:31:10 +0000 Subject: 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 --- src/SemanticScuttle/Service/User.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/SemanticScuttle') 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); } /** -- cgit v1.2.3