Clean DB on _before()

This commit is contained in:
Amine Ben hammou
2019-03-19 11:55:09 +01:00
committed by M. Shull
parent f80a83386e
commit 17949d06d5
3 changed files with 6 additions and 10 deletions

View File

@ -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);
}
}