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
This commit is contained in:
cweiske 2010-09-23 07:31:10 +00:00
parent 17a1595b31
commit b5eee3e761

View 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);
}
/**