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:
parent
17a1595b31
commit
b5eee3e761
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue