Clean DB on _before()
This commit is contained in:
committed by
M. Shull
parent
f80a83386e
commit
17949d06d5
@ -19,6 +19,7 @@ class UserFlagsControllerTest extends \MailPoetTest {
|
||||
|
||||
function _before() {
|
||||
parent::_before();
|
||||
UserFlag::deleteMany();
|
||||
|
||||
$current_user_id = 1;
|
||||
$other_user_id = 2;
|
||||
@ -102,6 +103,5 @@ class UserFlagsControllerTest extends \MailPoetTest {
|
||||
|
||||
function _after() {
|
||||
WPFunctions::set(new WPFunctions);
|
||||
\ORM::raw_execute('TRUNCATE ' . UserFlag::$_table);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user