]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
finally fix the problem that watchlist count tests failed every second alltests run
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 23 Sep 2010 07:31:10 +0000 (07:31 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 23 Sep 2010 07:31:10 +0000 (07:31 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@737 b3834d28-1941-0410-a4f8-b48e95affb8f

src/SemanticScuttle/Service/User.php

index 281c18c2b9695d201b85512d960228ea55759523..6fc3bb70760d1b9cd987344bff75716174b6259c 100644 (file)
@@ -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);
     }
 
     /**